Download Print this page
Most useful pages: More

Advertisement

INVERTER
FR-F
700
PLC FUNCTION
PROGRAMMING MANUAL
PLC FUNCTION
CC-Link
COMMUNICATION
SEQUENCE
PROGRAMMING
ERROR CODE
LIST
Chapter 1
Chapter 2
Chapter 3
Chapter 4

Advertisement

Chapters

   Summary of Contents for Mitsubishi Electric FR - F700

  • Page 1

    INVERTER FR-F PLC FUNCTION PROGRAMMING MANUAL Chapter 1 PLC FUNCTION CC-Link Chapter 2 COMMUNICATION SEQUENCE Chapter 3 PROGRAMMING ERROR CODE Chapter 4 LIST...

  • Page 2: Table Of Contents

    CONTENTS 1. PLC FUNCTION Compatible inverter models .............2 Block diagram................2 Operation panel indication ............3 PLC function specifications .............4 System configuration..............5 Wiring of the inverter and personal computer using GX Developer for RS-485 communication ......6 Operation by PLC function (Pr. 414, Pr. 415, Pr.

  • Page 3

    1.12.2 User parameter EEPROM read/write method..........45 1.13 Analog I/O function ..............46 1.13.1 Analog input ....................46 1.13.2 Analog output....................46 1.14 PID control ................47 1.15 Inverter operation lock mode setting ........49 1.16 Clearing of Flash Memory for PLC Function ......50 2.

  • Page 4

    I/O processing method ............75 3.6.1 What is refresh system?................75 3.6.2 Response delay in refresh system .............. 76 Scan time .................77 Numerical values usable in sequence program ....78 3.8.1 BIN (Binary Code) ..................79 3.8.2 HEX (HEX Decimal) ..................81 Description of devices ............82 3.9.1 Device list ....................

  • Page 5

    3.24 Description of the instructions ..........121 3.25 Sequence instructions............122 3.25.1 Contact Instructions : Operation start, series connection, parallel connection ... LD, LDI, AND, ANI, OR, ORI ..............122 3.25.2 Connection instructions : ladder block series connection, parallel connection ... ANB, ORB ... 125 3.25.3 Connection instructions : operation result, push, read, pop ...

  • Page 6

    3.28.2 Logical operation instructions : 16-bit logical product ... WAND, WANDP..........179 3.28.3 Logical operation instructions : 16-bit logical add ... WOR, WORP ............182 3.28.4 Logical operation instructions : 16-bit exclusive logical add ... WXOR, WXORP........185 3.28.5 Logical operation instructions : 16-bit not exclusive logical add ...

  • Page 7

    MEMO...

  • Page 8: Plc Function

    1. PLC FUNCTION This manual describes the functions and devices necessary for programming. 1.1 Compatible inverter models ........ 2 1.2 Block diagram............2 1.3 Operation panel indication ........3 1.4 PLC function specifications ........ 4 1.5 System configuration........... 5 Wiring of the inverter and personal computer using GX Developer for RS-485 communication..

  • Page 9: Compatible Inverter Models

    Compatible inverter models 1.1 Compatible inverter models This Instruction Manual provides information about the PLC function, which is available with the upgraded FR-F700-NA/EC inverters. To find out whether an FR- F700-NA/EC is equipped with the PLC function, check the Instruction Manual of the inverter.

  • Page 10: Operation Panel Indication

    Operation panel indication 1.3 Operation panel indication When a PLC program is in execution, P.RUN LED on the operation panel (FR-DU07) or P.RUN display on the parameter unit (FR-PU07(-01)) are as shown below table. FR-DU07 FR-PU07(-01) P.RUN P.RUN is displayed on PLC function LED the LCD when PLC function is operating.

  • Page 11: Plc Function Specifications

    PLC function specifications 1.4 PLC function specifications The following table indicates the program capacity and devices of the PLC function. F700 Sequence Section Control method Repeated operation (by stored program) I/O control method Refresh Relay symbolic language (ladder mode) Programming language Logic symbolic language (list mode) PLC instructions Basic instructions...

  • Page 12: System Configuration

    System configuration 1.5 System configuration The following shows the system configuration for use of the PLC function. <System configuration example> GX Developer: FR-F700 Programming tool PU connector RS-232C/ RS-485 converter Motor 3-phase AC power supply POINT •Support GX Developer ver.8.0 or more •GX Developer Setting PLC series ACPU...

  • Page 13: Wiring Of The Inverter And Personal Computer Using Gx Developer For Rs-485 Communication

    Wiring of the inverter and personal computer using GX Developer for RS-485 communication 1.6 Wiring of the inverter and personal computer using GX Developer for RS-485 communication PU connector Personal computer GX Developer : Programming tool RS-232C-RS-485 converter RS-232C connector Personal computer - inverter connection cable Make connection after conversion between RS-232C and RS-485.

  • Page 14: Operation By Plc Function (pr. 414, Pr. 415, Pr. 498, Pr. 506 To Pr. 515, Pr. 826 To Pr. 865)

    Operation by PLC function (Pr. 414, Pr. 415, Pr. 498, Pr. 506 to Pr. 515, Pr. 826 to Pr. 865) 1.7 Operation by PLC function (Pr. 414, Pr. 415, Pr. 498, Pr. 506 to Pr. 515, Pr. 826 to Pr. 865) I/O data read, write, etc.

  • Page 15: Prior To Sequence Program Creation

    Prior to sequence program creation 1.8 Prior to sequence program creation 1.8.1 Precautions for sequence program creation POINT •Online change of the sequence program and access to other stations are not allowed. In addition, program read/write from other stations and all PLC memory clear cannot be performed.

  • Page 16: Sequence Program Execution Key

    Prior to sequence program creation 1.8.3 Sequence program execution key Parameter Initial Setting Name Description Number Value Range PLC function is invalid PLC function PLC function is valid operation selection (Inverter reset is necessary to make this setting valid.) The sequence program execution key (STOP/RUN) of the PLC is switched by turning off/on the SQ signal.

  • Page 17: Communication Parameter Setting

    Prior to sequence program creation 1.8.4 Communication parameter setting POINT Communication with GX Developer can not be made if values of communication parameters (Pr.117 to Pr.124) of the inverter are initial settings. Before writing sequence program from GX Developer, communication parameters need to be set to the GX Developer setting.

  • Page 18: Sequence Program Write

    Prior to sequence program creation 1.8.5 Sequence program write POINT Sequence program write can be performed in any operation mode (External operation mode/PU operation mode/Network operation mode). Refer to the inverter manual for operation mode. When rewriting the PLC function parameters and sequence program using GX Developer, check the following: 1) Check that the sequence program execution key is in the STOP position (SQ signal is off) (refer to page 9).

  • Page 19: Setting List Of Built-in Plc Function Parameter

    Prior to sequence program creation 1.8.6 Setting list of built-in PLC function parameter The built-in PLC function parameters are designed to specify the ranges of using the PLC function, e.g. program capacity, device assignment and various functions. Setting Range Item GX Developer Default <Usable device range>...

  • Page 20: Device Map

    Device map 1.9 Device map 1.9.1 I/O device map Device Device Name Remarks Name Remarks STF terminal RUN terminal STR terminal SU terminal RH terminal OL terminal External RM terminal IPF terminal terminal RL terminal FU terminal JOG terminal ABC1 terminal External terminal RT terminal...

  • Page 21

    Device map Device Device Name Remarks Name Remarks Operation mode setting Operation mode setting D9140 D9140 read completion read command Set frequency read Set frequency read D9141 D9141 completion (RAM) command (RAM) Set frequency read Set frequency read D9142 D9142 completion (EEPROM) command (EEPROM) Operation mode setting...

  • Page 22: Internal Relay (m) Device Map

    Device map 1.9.2 Internal relay (M) device map Device No. Description M0 to M63 Use freely on user side. 1.9.3 Data register (D) device map Data Inverter Pr. Reference Parameter Name Register (D) Number Page D0 to D109 Use freely on user side. —...

  • Page 23

    Device map Number Name Description Inverter operation status Control the RES terminal of the inverter from PLC M9211 control flag (RES) function M9216 Inverter status (RUN) Inverter running M9217 Inverter status (FWD) Forward running M9218 Inverter status (REV) Reverse running M9219 Inverter status (SU) Up to frequency...

  • Page 24: Special Registers

    Device map 1.9.5 Special registers The special registers are data registers with special applications and therefore data should not be written to the special registers in the program. Number Name Description Page Self-diagnostic Stores the self-diagnosed error number in BIN. (Refer D9008 error to page 26 for the error codes.)

  • Page 25

    Device map Number Name Description Page D9136 Error history 1, 2 D9137 Error history 3, 4 Stores the errors that occurred in the inverter in order of occurrence. D9138 Error history 5, 6 D9139 Error history 7, 8 Operation mode D9140 Stores the current operation mode.

  • Page 26

    Device map Number Name Description Page Inverter Stores the error No. when an error occurs because the D9150 parameter data stored in the parameter or special register is not access error reflected on the inverter. Stores the running status and operating status of the inverter.

  • Page 27

    Device map Number Name Description Page Output terminal status details B4B3 0:OFF 1:ON Output terminal D9163 — status ABC1 ABC2 D9164 0.1% units — Load meter Cumulative D9167 1h units — energization time Actual operation D9170 1h unit — time D9171 Motor load factor 0.1% units —...

  • Page 28

    Device map Number Name Description Page The output status of the FR-A7AY, FR-A7AR is stored. All off (0) when an option is not fitted. B12B11 B8B7 B4B3 0:OFF 1:ON Option output D9207 — terminal status Stores the PTC thermistor resistance at terminal 2 PTC thermistor D9211 when PTC thermistor protection is active.

  • Page 29

    Device map Number Name Description Page Second D9234 parameter changing (RAM) When setting the calibration(bias/gain) parameters. H00: Frequency(torque) 40, 42 Second H01: Parameter-set analog value parameter H02: Analog value input from terminal D9235 changing (EEPROM) Parameter Set the number of parameter read or written of the D9241 number (RAM) inverter.

  • Page 30: Inverter Status Monitoring, Special Registers For Control

    Inverter status monitoring, special registers for control 1.10 Inverter status monitoring, special registers for control You can assign the data for grasping and changing the inverter's operation status to D9133 - D9147 and read/write them from the user sequence. (Refer to page 17 for the list.) 1.10.1 Data that can be read at all times The following data can always be read.

  • Page 31

    Inverter status monitoring, special registers for control (2) Faults history (fault codes and fault definitions) The inverter stores the fault codes of the faults that occurred. The fault codes of up to eight faults are stored in the order as shown below and are always read-enabled (write-disabled).

  • Page 32

    Inverter status monitoring, special registers for control (3) Fault clear signal (X51 signal) The X51 signal cancels a fault without resetting the inverter when an inverter fault occurs. The X51 signal cancels an inverter fault while the PLC function operation continues. Enable the X51 signal by setting "51"...

  • Page 33

    Inverter status monitoring, special registers for control (4) Regarding the error No. and details of the self-diagnostic errors During execution of a sequence program, any of the following error No. is stored into D9008 due to an operation error. At occurrence of a self-diagnostic error, the P.RUN indicator (LED) flickers. Error No.

  • Page 34: Data That Are Read By Controlling (off To On) The Read Command

    Inverter status monitoring, special registers for control 1.10.2 Data that are read by controlling (OFF to ON) the read command You can read the operation mode and set frequency of the inverter. Device Read Write Data Access Name Command Completion Enable Condition D9140 Operation mode setting read...

  • Page 35

    Inverter status monitoring, special registers for control (2) Set frequency read (RAM) (D9141) The frequency set to the RAM is read to D9141. The unit is 0.01Hz. (For example, 6000 indicates 60.00Hz.) When the speed is set, the speed is either 1r/min or 0.1r/min. <Set frequency (RAM) read program example>...

  • Page 36: How To Write Data By Controlling (off To On) The Write Command

    Inverter status monitoring, special registers for control 1.10.3 How to write data by controlling (OFF to ON) the write command You can write the operation mode and set frequency to the inverter, batch-clear the faults history, and clear all parameters. Device Write Write...

  • Page 37

    Inverter status monitoring, special registers for control (1) Operation mode setting write (D9143) Data are as follows: Data Setting Operation Mode NET operation mode H0000 External operation mode H0001 PU operation mode H0002 The operation mode switching method is as shown below when the Pr.79 Operation mode selection value is "0".

  • Page 38

    Inverter status monitoring, special registers for control (2) Set frequency write (RAM) (D9144) The D9144 data is written to the RAM as a set frequency. The unit is 0.01Hz. (For example, 6000 indicates 60.00Hz.) When the speed is set, the speed is either 1r/min or 0.1r/min. The range where the frequency can be set is 0 to 12000 (0 to 120.00Hz).

  • Page 39

    Inverter status monitoring, special registers for control (3) Set frequency write (EEPROM) (D9145) The D9145 data is written to the EEPROM as a set frequency. The unit is 0.01Hz. (For example, 6000 indicates 60.00Hz.) When the speed is set, the speed is either 1r/min or 0.1r/min. The range where the frequency can be set is 0 to 12000 (0 to 120.00Hz).

  • Page 40

    Inverter status monitoring, special registers for control (4) Faults history batch clear (D9146) Writing H9696 to D9146 batch-clears the faults history. At completion of clear, the write completion signal (X26) turns on, and at the same time, 0 is set to D9150. If any value outside the setting range is written or write is performed during inverter operation, HFFFF is set to D9150 as soon as the write completion signal (X26) turns on, resulting in abnormal completion.

  • Page 41

    Inverter status monitoring, special registers for control (5) Parameter clear (D9147) Writing H9696 or H9966 to D9147 clears all parameters. Writing H5A5A or H55AA to D9147 clears the parameters other than the communication parameters (Refer to the Inverter Instruction Manual). Communication Device No.

  • Page 42: Inverter Operation Status Control

    Inverter status monitoring, special registers for control 1.10.4 Inverter operation status control Device No. Name Data Access Enable Condition Inverter operation status control Always D9148 Note that this function is enabled in the external/NET operation mode. Inverter operation status control D9149 (Not enabled in the PU enable/disable...

  • Page 43

    Inverter status monitoring, special registers for control (2) Inverter operation status control enable/disable setting (D9149) You can enable or disable D9148 "inverter operation status control". The controls of the corresponding bits of D9148 are enabled by turning on/off (1, 0) bits b0 to b11 of D9149.

  • Page 44: Inverter Parameter Access Error (d9150)

    Inverter status monitoring, special registers for control 1.10.5 Inverter parameter access error (D9150) Data Access Enable Device No. Name Condition D9150 Inverter parameter access error Always If any value outside the setting range is written during parameter write, set frequency write, parameter clear, etc.

  • Page 45: User Defined Fault (d9214)

    Inverter status monitoring, special registers for control 1.10.7 User defined fault (D9214) An inverter fault can be initiated by setting a value between 16 and 20 in D9214. The inverter stops when a fault occurs. The settings other than 16 to 20 are invalid. The setting is also invalid when Pr.414 ≠"1."...

  • Page 46: Monitor Setting Selection(d9215 To D9218)

    Inverter status monitoring, special registers for control 1.10.8 Monitor setting selection(D9215 to D9218) Set the names and units of monitored items for each of D9216, D9217, and D9218 using the PR command. (Refer to page 193.) To display the names and the units of the monitored items, which are set by D9216 to D9218, on FR-PU07-01, set "40, 41, or 42"...

  • Page 47: Inverter Parameter Read/write Method

    Inverter parameter read/write method 1.11 Inverter parameter read/write method 1.11.1 Reading the inverter parameters Data Access Enable Device No. Name Command Completion Condition (Operation mode) D9241 Parameter number (RAM) D9242 Parameter description (RAM) Second parameter changing D9234 (RAM) Always D9243 Parameter number (EEPROM) Parameter description D9244...

  • Page 48

    Inverter parameter read/write method Inverter parameter data read timing chart 3) In user sequence, ON of read completion is confirmed and data are read from data registers D9242(D9243) and processed. 1) Read command is turned 4) After completion of read, on in user sequence.

  • Page 49: Writing The Inverter Parameters

    Inverter parameter read/write method 1.11.2 Writing the inverter parameters Data Access Enable Device No. Name Command Completion Condition (Operation mode) D9241 Parameter number (RAM) D9242 Parameter description (RAM) Second parameter changing D9234 (RAM) PU, NET operation mode D9243 Parameter number (EEPROM) (as in Pr.77) Parameter description D9244...

  • Page 50

    Inverter parameter read/write method Inverter parameter data write timing chart 1) In user sequence, user data 4) After confirmation of write are stored into parameter write 2) Write command is turned completion, write command data area (D9242(D9244)). on in user sequence. is turned off.

  • Page 51: User Area Read/write Method

    User area read/write method 1.12 User area read/write method Inverter parameters Pr.506 to Pr.515, Pr.826 to Pr.865 can be used as user parameters. Since this parameter area and the devices used with the PLC function, D110 to D159, are accessible to each other, the values set in Pr.506 to Pr.515, Pr.826 to Pr.865 can be used in a sequence program.

  • Page 52: User Parameter Eeprom Read/write Method

    User area read/write method 1.12.2 User parameter EEPROM read/write method Parameter Device No. Name Command Completion Data Access User Parameter read D110 to 506 to 515, (EEPROM/RAM) Always enabled D159 826 to 865 User Parameter write (EEPROM/RAM) After turning off the read/write command and on again, turning on the read/write completion enables read/write of user parameter from RAM and EEPROM.

  • Page 53: Analog I/o Function

    Analog I/O function 1.13 Analog I/O function 1.13.1 Analog input Analog input value of terminal 1, 2, 4 can be read from D9245 to D9247. Device Setting Data Access Enable Terminal Name Unit Condition D9245 Terminal 1 input 0.1% D9246 Terminal 2 input 0.1% Always D9247 Terminal 4 input...

  • Page 54: Pid Control

    PID control 1.14 PID control With PLC function, PID set point/PID deviation value, PID measured value can be set by setting Pr. 128. Performing the PID operation using the value of D9248 and D9249 as PID set point/ PID deviation value, PID measured value, manipulated variable is stored to D9250. When performing PID control with PLC function, "1"...

  • Page 55

    PID control Device Name Setting Range Description Set point: 0 to 100%* Set the PID set point or PID D9248 PID set point / PID deviation Deviation value: deviation (0.01% increments*) -100 to 100% Set the PID measurement D9249 PID measured value 0 to 100%* value (0.01% increments*) Stores the PID manipulated...

  • Page 56: Inverter Operation Lock Mode Setting

    Inverter operation lock mode setting 1.15 Inverter operation lock mode setting You can disable a sequence program from being executed until the sequence program execution key is set to RUN (SQ signal is turned on). POINT When you want to perform only inverter operation without using the PLC function, set "0"...

  • Page 57: Clearing Of Flash Memory For Plc Function

    Clearing of Flash Memory for PLC Function 1.16 Clearing of Flash Memory for PLC Function Setting 9696 in clears flash memory used for PLC function. Pr.498 Parameter Initial Setting Name Description Number Setting Range 9696: Flash memory clear PLC function flash 0 to 9999 Other than 9696: memory clear...

  • Page 58: Cc-link Communication

    2. CC-Link COMMUNICATION 2.1 System configuration........... 52 2.2 CC-Link parameters ..........55 2.3 CC-Link I/O specifications ........56 2.4 Buffer memory ............63 Chapter 1 Chapter 2 Chapter 3 Chapter 4...

  • Page 59: System Configuration

    System configuration 2.1 System configuration 2.1.1 System configuration example (1) PLC side Mount the "control & communication link system master/local module" on the main base unit or extension base unit of the PLC CPU that will act as the master station.

  • Page 60: Function Block Diagram

    System configuration 2.1.2 Function block diagram How I/O data are transferred to/from the inverter in CC-Link will be described using function blocks. (1) Between the master station and inverter in the CC-Link system, link refresh is always made at 3.5 to 18ms (512 points). (2) I/O refresh and master station's sequence program are executed asynchronously.

  • Page 61

    System configuration POINT The difference between CC-Link communication (Pr. 544 = 100, 112, 114, 118) with PLC function and normal CC-Link communication (Pr. 544 =1, 2, 12, 14, 18) is indicated below. Inverter Pr.544=0,1,12,14,18 FR-A7NC I/O (RX, RY) RWw RWr Parameter read/write, monitor, operation commands, etc.

  • Page 62: Cc-link Parameters

    CC-Link parameters 2.2 CC-Link parameters 2.2.1 CC-Link extended setting (Pr. 544) Remote register function can be extended. Parameter Initial Setting CC-Link Name Description Value Range Number Ver. Occupies one station (FR-A5NC compatible) Occupies one station Occupies one station double Occupies one station quadruple Occupies one station octuple CC-Link extended...

  • Page 63: Cc-link I/o Specifications

    CC-Link I/O specifications 2.3 CC-Link I/O specifications 2.3.1 I/O signal when CC-Link Ver.1 one station is occupied (Pr. 544 = 100) The device points usable in CC-Link communication are 32 input (RX) points (16 points are available for PLC function), 32 output (RY) points (16 points are available for PLC function), 4 remote register (RWr) points and 4 remote register (RWw) points.

  • Page 64

    CC-Link I/O specifications ("n" indicates a value determined according to the station number setting.) Signal names are initial values. Using Pr. 180 to Pr. 186, Pr. 188, and Pr .189, you can change input signal functions. Signals of the RYn0, RYn1, and RYn9 can not be changed. Even when changed using Pr. 178, Pr.

  • Page 65: I/o Signal When Cc-link Ver.2 Double Setting Is Selected (pr. 544 = 112)

    CC-Link I/O specifications 2.3.2 I/O signal when CC-Link Ver.2 double setting is selected (Pr. 544 = 112) The device points usable in CC-Link communication are 32 input (RX) points (12 points are available for PLC function), 32 output (RY) points (12 points are available for PLC function), 4 remote register (RWr) points and 4 remote register (RWw) points.

  • Page 66

    CC-Link I/O specifications ("n" indicates a value determined according to the station number setting.) Signal names are initial values. Using Pr. 180 to Pr. 186, Pr. 188, and Pr .189, you can change input signal functions. Signals of the RYn0, RYn1, and RYn9 can not be changed. Even when changed using Pr. 178, Pr.

  • Page 67: I/o Signal When Cc-link Ver.2 Quadruple Setting Is Selected (pr. 544 = 114)

    CC-Link I/O specifications 2.3.3 I/O signal when CC-Link Ver.2 quadruple setting is selected (Pr. 544 = 114) The device points usable in CC-Link communication are 32 input (RX) points (12 points are available for PLC function), 32 output (RY) points (12 points are available for PLC function), 8 remote register (RWr) points and 8 remote register (RWw) points.

  • Page 68: I/o Signal When Cc-link Ver.2 Octuple Setting Is Selected (pr. 544 = 118)

    CC-Link I/O specifications 2.3.4 I/O signal when CC-Link Ver.2 octuple setting is selected (Pr. 544 = 118) The device points usable in CC-Link communication are 32 input (RX) points (12 points are available for PLC function), 32 output (RY) points (12 points are available for PLC function), 16 remote register (RWr) points and 16 remote register (RWw) points.

  • Page 69

    CC-Link I/O specifications Description PLC Function PLC Function Address Address Description Upper 8 Lower 8 Device No. Device No. Bits Bits D9062 RWwn+10 D9078 RWrn+10 D9063 RWwn+11 D9079 RWrn+11 D9064 RWwn+12 D9080 RWrn+12 D9065 RWwn+13 D9081 RWrn+13 D9066 RWwn+14 D9082 RWrn+14 D9067 RWwn+15...

  • Page 70: Buffer Memory

    Buffer memory 2.4 Buffer memory 2.4.1 Remote output signals (Master module to inverter(FR-A7NC)) •Input states to the remote device station are stored. •Two words are used for each station. (Do not use address 16n (n = 2(X - 1) + 1, X = station No.)) FR-F700 series Remote device station Master Station...

  • Page 71: Remote Input Signals Pr.544=100

    Buffer memory 2.4.2 Remote input signals Pr.544=100 (Inverter(FR-A7NC) to master module) • Input states from the remote device station are stored. • Two words are used for each station. (Do not use address En (n = 2(X - 1) + 1, X = station No.)) FR-F700 series Remote device station (Station No.

  • Page 72: Remote Registers Pr.544=100

    Buffer memory 2.4.3 Remote registers Pr.544=100 (Master module to inverter(FR-A7NC)) • Data to be sent to the remote registers (RWW) of the remote device station are stored. • Four words are used for each station. FR-F700 series Remote device station Master station (Station No.

  • Page 73: Remote Registers Pr.544=100

    Buffer memory 2.4.4 Remote registers Pr.544=100 (Inverter(FR-A7NC) to master module) • Data sent from the remote registers (RWR) of the remote device station are stored. • Four words are used for each station. FR-F700 series Remote device station Master station (Station No.

  • Page 74: Sequence Programming

    3. SEQUENCE PROGRAMMING 3.1 Overview ............... 68 3.2 RUN and STOP operation processings ....70 3.3 Program makeup ..........70 3.4 Programming languages ........71 3.5 Operation processing method of PLC function..74 3.6 I/O processing method ........75 3.7 Scan time .............. 77 3.8 Numerical values usable in sequence program ...

  • Page 75: Overview

    Overview 3.1 Overview 3.1.1 Outline of operation processings This section outlines processings performed from when the inverter is powered on until a sequence program is executed. The built-in PLC function processings are roughly classified into the following three types. (1) Initial processing Pre-processing for executing sequence operation.

  • Page 76

    Overview Power on Initial processing I/O initialization Data memory initialization Self-diagnostic checks I/O refresh processing Sequence program operation processing Step 0 Until execution of END instruction END processing Self-diagnostic checks Updating of timer and counter present values and on/off of their contacts Fig 3.1 Operation Processings of Built-in PLC function...

  • Page 77: Run And Stop Operation Processings

    RUN and STOP operation processings 3.2 RUN and STOP operation processings The built-in PLC function has two different operation statuses: RUN status and STOP status. This section explains the operation processings of the built-in PLC function in each operating status. (1) Operation processing in RUN status A RUN status indicates that a sequence program is repeating its operation in order of step 0 to END (FEND) instruction while the SQ signal is ON.

  • Page 78: Programming Languages

    Programming languages 3.4 Programming languages The built-in PLC function has two different programming methods: one that uses ladders and the other that uses dedicated instructions. • Programming that uses ladders is performed in the relay symbolic language. *1 • Programming that uses dedicated instructions is performed in the logic symbolic language.

  • Page 79

    Programming languages (2) Sequence program operation method Sequence program operation repeats execution from a ladder block at step 0 to an END instruction. In a single ladder block, operation is performed from the left hand side vertical bus to the right, and from the top to the bottom. Operation from left to right Beginning of one End of one...

  • Page 80: Logic Symbolic Language (list Mode)

    Programming languages 3.4.2 Logic symbolic language (list mode) The logic symbolic language uses dedicated instructions for programming contacts, coils, etc. instead of their symbols used by the relay symbolic language. (1) Program operation method Sequence program operation is executed from an instruction at step 0 to an END instruction in due order.

  • Page 81: Operation Processing Method Of Plc Function

    Operation processing method of PLC function 3.5 Operation processing method of PLC function The operation processing method is the repeated operation of a stored program. (1) Stored program system 1) In a stored program system, a sequence program to be operated is stored in the internal memory beforehand.

  • Page 82: I/o Processing Method

    I/O processing method 3.6 I/O processing method The control system is a refresh system. 3.6.1 What is refresh system? In the refresh system, control input terminal changes are batch-imported into the input data memory of the CPU before execution of each scan, and the data of this input data memory are used as the input data for operation execution.

  • Page 83: Response Delay In Refresh System

    I/O processing method 3.6.2 Response delay in refresh system This section describes a delay of an output change in response to an input change. An output change in response to an input change has a delay of up to two scans as shown in Fig.

  • Page 84: Scan Time

    Scan time 3.7 Scan time (1) Scan time A scan time is a time from when sequence program operation is executed from step 0 until step 0 is executed again. The scan time of each scan is not equal, and changes depending on whether the used instructions are executed or not.

  • Page 85: Numerical Values Usable In Sequence Program

    Numerical values usable in sequence program 3.8 Numerical values usable in sequence program The built-in PLC function represents numerical values, alphabets and other data in two statuses: 0 (OFF) and 1 (ON). The data represented by these 0s and 1s are called BIN (binary code). The built-in PLC function can also use HEX (hexadecimal code) that represents BIN data in blocks of four bits.

  • Page 86: Bin (binary Code)

    Numerical values usable in sequence program 3.8.1 BIN (Binary Code) (1) Binary code BIN is a numerical value represented by 0s (OFF) and 1s (ON). In the decimal code, a number is incremented from 0 to 9, and at this point, a carry occurs and the number is incremented to 10.

  • Page 87

    Numerical values usable in sequence program (2) Numerical representation of BIN 1) Each register (e.g. data register) of the built-in PLC function consist of 16 bits. Each bit of the register is assigned a 2 value. However, the most significant bit is used to judge whether the value is positive or negative.

  • Page 88: Hex (hex Decimal)

    Numerical values usable in sequence program 3.8.2 HEX (HEX Decimal) (1) HEX HEX represents four bits of BIN data as one digit. Using four bits in BIN, you can represent 16 values from 0 to 15. Since HEX represents any of 0 to 15 in a single digit, 9 is followed by alphabets A (instead of 10), B (11)..., and F (15) is followed by a carry.

  • Page 89: Description Of Devices

    Description of devices 3.9 Description of devices 3.9.1 Device list The following table indicates the device names usable with the built-in PLC function and their ranges of use. Table 3.3 Device List Input (X) 64 (X0 to X3F) <12 points installed> Output (Y) 64 (Y0 to Y3F) <7 points installed>...

  • Page 90: Inputs, Outputs X, Y

    Description of devices 3.9.2 Inputs, outputs X, Y Inputs and outputs are devices designed to transfer data between the inverter and external devices. Inputs provide ON/OFF data given to the corresponding control input terminals from outside the inverter. In a program, they are used as contacts (normally open, normally closed contacts) and the source data of basic instructions.

  • Page 91

    Description of devices (1) Inputs X (a) Inputs are designed to give commands and data from external devices, such as pushbuttons, select switches, limit switches and digital switches, to the inverter (built-in PLC function). (b) On the assumption that the PLC function contains a virtual relay Xn for one input point, the normally open (N/O) or normally closed (N/C) contact of that Xn is used in the program.

  • Page 92

    Description of devices (2) Outputs Y (a) Outputs are designed to output the control results of a program to outside the inverter (signal lamps, digital indicators, magnetic switches (contactors), solenoids, etc.). (b) An output can be exported to outside the inverter as equivalent to one N/O contact.

  • Page 93: Internal Relays M

    Description of devices 3.9.3 Internal relays M Internal relays are auxiliary relays that are used in the PLC function and cannot latch data (backup for power failure). All internal relays are turned off when: • Power is switched from off to on; or •...

  • Page 94: Timers T

    Description of devices 3.9.4 Timers T The timers of the PLC function are count up timers. The count up timer starts timing the present value when its coil turns on, and the contact of that timer turns on when the present value reaches the setting (time-out). 3.9.5 100ms, 10ms and 100ms retentive timers (1) 100ms and 10ms timers...

  • Page 95: Timer Processing Method And Accuracy

    Description of devices (2) 100ms retentive timers 1) A 100ms retentive timer is designed to time the ON period of the timer coil. When its coil turns on, the timer starts timing the present value and maintains the present value and contact ON/OFF state if the coil turns off. When the coil turns on again, the timer resumes timing from the maintained present value.

  • Page 96

    Description of devices (2) Present value update timing and accuracy in refresh system 1) The timer accuracy is +2 scan times independently of the used timer and scan time. 2) The following shows the present value update timing and accuracy when the 10ms timer is used in a program where the scan time is 10ms or more.

  • Page 97: Counters C

    Counters C 3.10 Counters C The counters of the built-in PLC function are up counters. An up counter stops counting and its contact turns on when the count value reaches the setting. (1) Count processing 1) The coil of the counter is turned on/off at execution of the OUT C instruction, and its present value is updated and its contact turns on after execution of the END instruction.

  • Page 98: Count Processing In Refresh System

    Counters C 3.10.1 Count processing in refresh system The counter counts on the leading edge of the input condition of the counter imported at an input refresh. Ladder example When OFF to ON of X5 is counted twice, C3 contact turns on. Counting method Input (X) refresh Does not count since X5 remains on.

  • Page 99: Maximum Counting Speed Of Counter

    Counters C 3.10.2 Maximum counting speed of counter The maximum counting speed of the counter is determined by the scan time, and the counter can count only when the ON/OFF period of the input condition is longer than the scan time. [times/s] n: Duty (%) Maximum counting speed Cmax ts: Scan time [s]...

  • Page 100: Data Registers D

    Data registers D 3.11 Data registers D (1) Data registers are memories that can store numerical data (-32768 to 32767 or H0000 to HFFFF) in the built-in PLC function. One point of data register consists of 16 bits and allows data to be read/written in units of 16 bits.

  • Page 101: Special Relays, Special Registers

    Special relays, special registers 3.12 Special relays, special registers Special relays and special registers are internal relays and data registers, respectively, whose applications are predetermined by the built-in PLC functions. They have the following main applications. (1) Sequence operation check The special relays and special registers can be used to: (a)Check the operating status (RUN/STOP) (b)Detect a fault by the self-diagnostic function...

  • Page 102

    Special relays, special registers Table3.4 Special Relay Application List Special Item Application/Description Relay (1) This relay turns on for one scan when the built-in PLC function switches from STOP to RUN. END/0 END/0 END/0 END/0 Sequence program 1 scan Initial processing M9038 M9038...

  • Page 103: Function List

    Function list 3.13 Function list Function Description • This function performs remote RUN/STOP from outside the Remote RUN/STOP inverter when the SQ signal is ON (PLC function in RUN status (P.RUN lit)). • The watchdog timer is an internal timer of the sequence Watchdog timer variable function designed to detect hardware or program faults and (10 to 2000ms)

  • Page 104: How To Run/stop The Built-in Plc Function From Outside (remote Run/stop)

    How to RUN/STOP the built-in PLC function from outside (remote RUN/STOP) 3.14 How to RUN/STOP the built-in PLC function from outside (remote RUN/STOP) The built-in PLC function is set to RUN/STOP by turning ON/OFF the SQ signal. The remote RUN/STOP is a function that sets RUN/STOP of the built-in PLC function from outside the inverter while the SQ signal is ON (RUN status).

  • Page 105

    How to RUN/STOP the built-in PLC function from outside (remote RUN/STOP) 2) Method using GX Developer RUN/STOP can be performed by remote RUN/STOP operation from GX Developer. For example, this method can be used to STOP the function for sequence program write in a place where the inverter is out of reach.

  • Page 106: Watchdog Timer (operation Clog Up Monitor Timer)

    Watchdog timer (operation clog up monitor timer) 3.15 Watchdog timer (operation clog up monitor timer) (1) Watchdog timer A watchdog timer is the internal timer of the built-in PLC function designed to detect hardware or sequence program faults. Its default value is set to 200ms. (2) Watchdog timer resetting The built-in PLC function resets the watchdog timer before execution of step 0 (after execution of END processing).

  • Page 107: Self-diagnostic Function

    Self-diagnostic function 3.16 Self-diagnostic function The self-diagnostic function diagnoses faults by the built-in PLC function itself. (1) Self-diagnostic timing The self-diagnostic function is performed at power-on, at reset, at execution of any instruction, or at execution of the END instruction. 1) At power-on, at reset Whether operation can be executed or not is diagnosed.

  • Page 108: Error-time Operation Mode

    Self-diagnostic function 3.16.1 Error-time operation mode The built-in PLC function allows you to set whether the sequence program operation will be stopped or continued at occurrence of an operation error. Use the built-in PLC function parameter to set whether operation will be stopped or continued.

  • Page 109: Keyword Registration

    Keyword registration 3.17 Keyword registration The keyword is designed to inhibit the read and rewrite of the program and comments in the built-in PLC function using GX Developer. (1) Read/write from built-in PLC function where keyword has been registered When the keyword has been registered, the built-in PLC function parameters, main program and comments cannot be read/written from the built-in PLC function to the GX Developer device unless the keyword registered to the built-in PLC function is entered.

  • Page 110: Setting Of Output (y) Status At Switching From Stop Status To Run Status

    Setting of output (Y) status at switching from STOP status to RUN status 3.18 Setting of output (Y) status at switching from STOP status to RUN status When the RUN status is switched to the STOP status, the outputs (Y) in the RUN status are stored into the built-in PLC function.

  • Page 111: Instruction Format

    Instruction format 3.19 Instruction format (1) Many of the instructions can be divided into an instruction part and a device, and their applications are as described below. Instruction part ..Indicates the function of that instruction. Device ..Indicates the data used with the instruction. (2) The instruction format can be roughly classified as follows according to the instruction part and device combinations.

  • Page 112

    Instruction format (3) Source (S) The source contains the data to be used for operation. The data changes depending on the specified device. • Constant ........Specify the numerical value to be used for operation. Since this value is set at the time of program creation, it is fixed and cannot be changed during program execution.

  • Page 113: Bit Device Processing Method

    Bit device processing method 3.20 Bit device processing method As the processing method when the bit device (X, Y, M) is specified, 1-bit processing, 16-bit processing and 32-bit processing using digit designation processing are available. 3.20.1 1-bit processing When a PLC instruction is used, the device used as the target of operation processing is one bit (one point) of bit device, and multiple bits cannot be specified.

  • Page 114

    Bit device processing method Ladder Example Processing For 16-bit instruction Turn to 0s. Source (S) data Fig 3.26 Ladder Example and Processing (b) When there is digit designation on the destination (D) side, the number of points specified by digit designation is the target on the destination side. Ladder Example Processing When source (S) data...

  • Page 115

    Bit device processing method (2) 32-bit instruction: K1 to 8 (4 to 32 points) Example Setting range by the digit specification of 32-bit data, X0 to 1F X18 X17 X1CX1B X14X13 XC XB X8 X7 X4 X3 Specification range of K1 (4 points) Specification range of K2 (8 points)

  • Page 116

    Bit device processing method (b) When there is digit specification on the destination (D) side, the number of points set by the digit specification is used on the destination side. Ladder Example Processing Source (S) data is numeric value H78123456 X010 DMOV 78123456...

  • Page 117: Handling Of Numerical Value

    Handling of Numerical Value 3.21 Handling of numerical value The built-in PLC function has instructions that handle numerical values indicated in 16- bit and 32-bit. The most significant bit of the 16-bit or 32-bit are used to indicate whether the value is positive or negative.

  • Page 118: Operation Error

    Operation error 3.22 Operation error When a basic instruction is used, an operation error will occur in the following case. (a) If any error described in the description of the corresponding instruction occurs. POINT Note that if the device designation range is outside the corresponding device range, an operation error does not occur and data is written to other than the specified device.

  • Page 119: Instructions List

    Instructions list 3.23 Instructions list 3.23.1 How to use the instruction list Instruction Execution Number Classification Symbol Processing Symbol Condition of Steps (S) → (D) Transfer MOVP MOVP ↑ ↑ ↑ ↑ ↑ ↑ 1) ..Classifies the instruction by application. 2) ..Indicates the instruction symbol used for programming.

  • Page 120

    Instructions list 4)..Indicates the operation. (D + 1, D) + (S + 1, S) (D + 1, D) 16 bits 16 bits (D) + (S) Indicates 16 bits Indicates 32 bits Upper 16 bits Lower 16 bits 5)..Indicates the condition of execution for each instruction as described below: Symbol Execution Condition...

  • Page 121: Sequence Instruction

    Instructions list 3.23.2 Sequence instruction Instruction Symbol Processing Classification Symbol Logical operation start (Operation start at N/O contact) Logical NOT operation start (Operation start at N/C contact) Logical product (N/O contact series connection) Contacts Logical product NOT (N/C contact series connection) Logical sum (N/O contact parallel...

  • Page 122

    Instructions list Instruction Symbol Processing Classification Symbol Master control start Master control Master control reset Must be written at the end of Program — sequence program to return to 1 145 step 0. No operation — 1 146 For program deletion or space No operation operation NOPLF...

  • Page 123: Basic Instructions

    Instructions list 3.23.3 Basic instructions Instruction Symbol Processing Classification Symbol Continuity when (S1) = (S2) AND= Non-continuity when (S1) ≠ (S2) LD<> < > Continuity when (S1) ≠ (S2) AND<> < > Non-continuity when (S1) = (S2) OR<> < > LD>...

  • Page 124

    Instructions list Instruction Symbol Processing Classification Symbol LDD<> LDD<> Continuity when (S1+1, S1) ≠ (S2+1, S2) ANDD<> ANDD<> Non-continuity when (S1+1, S1) = (S2+1, S2) ORD<> ORD<> LDD> LDD> Continuity when (S1+1, S1) > (S2+1, S2) ANDD> ANDD> Non-continuity when (S1+1, S1) ≤...

  • Page 125

    Instructions list Instruction Symbol Processing Classification Symbol (S) + (D) → (D) (S1) + (S2) → (D) BIN 16-bit addition/ subtraction (S) - (D) → (D) (S1) - (S2) → (D) (D+1,D) + (S+1,S) → (D+1,D) (S1+1,S1) + (S2+1,S2) → (D+1,D) BIN 32-bit addition/ subtraction...

  • Page 126

    Instructions list Instruction Symbol Processing Classification Symbol ∗ ∗ (S1) x (S2) → (D+1, D) ∗ BIN 16-bit ∗P multiplication /division (S1) / (S2) → Quotient (D) ,Remainder (D+1) ∗ D∗ (S1+1,S1) × (S2+1,S2) → (D+3,D+2,D+1,D) ∗ BIN 32-bit D∗P multiplication /division (S1+1, S1) / (S2+1, S2) →...

  • Page 127: Application Instructions

    Instructions list 3.23.4 Application instructions Instruction Symbol Processing Classification Symbol WAND WAND (D) AND (S) → (D) WANDP WANDP Logical product WAND WAND (S1) AND (S2) → (D) WANDP WANDP (D) OR (S) → (D) WORP WORP Logical (S1) OR (S2) → (D) WORP WORP WXOR...

  • Page 128: Description Of The Instructions

    Description of the instructions 3.24 Description of the instructions In Chapter 3, the instructions are described in the following format. Output Instructions 6.5.2 Device set, reset ... SET, RST Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010,...

  • Page 129: Sequence Instructions

    Sequence instructions 3.25 Sequence instructions Sequence instructions are used for relay control circuits, etc. 3.25.1 Contact Instructions : Operation start, series connection, parallel connection ... LD, LDI, AND, ANI, OR, ORI Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit...

  • Page 130

    Sequence instructions Functions LD, LDI (1) LD is an N/O contact operation start instruction, and LDI is an N/C contact operation start instruction. Each of them imports the ON/OFF data of the specified device and uses it as an operation result. AND, ANI (1) AND is an N/O contact series connection instruction, and ANI is an N/C contact series connection instruction.

  • Page 131

    Sequence instructions Program Examples Coding ・ Coding ・ Coding ・...

  • Page 132: Connection Instructions : Ladder Block Series Connection, Parallel Connection

    Sequence instructions 3.25.2 Connection instructions : ladder block series connection, parallel connection ... ANB, ORB Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) Block A Block B Block A Block B Use OR or ORI to connect contacts in parallel.

  • Page 133

    Sequence instructions Functions (1) ANDs blocks A and B and uses the resultant value as an operation result. (2) The symbol of ANB is not a contact symbol but a connection symbol. (3) ANB can be written up to seven instructions (eight blocks) consecutively. If ANB is written consecutively more than the above, the PLC cannot perform normal operation.

  • Page 134

    Sequence instructions Program Examples Though there are the following two different program coding methods for connecting ladder blocks in series consecutively, use the coding example 1. Coding example 1 Coding example 2 Though there are the following two different program coding methods for connecting ladder blocks in parallel consecutively, use the coding example 1.

  • Page 135: Connection Instructions : Operation Result, Push, Read, Pop

    Sequence instructions 3.25.3 Connection instructions : operation result, push, read, pop ... MPS, MRD, MPP Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) MPS, MRD and MPP do not appear in ladder display. Functions (1) Stores the operation result (ON/OFF) immediately before itself.

  • Page 136

    Sequence instructions POINT (1) Ladders differ as shown below between when MPS, MRD and MPP are used and when they are not used. Ladder using MPS, MRD and MPP Ladder not using MPS, MRD and MPP (2) Use the same number of MPS and MPP instructions. If they differ in the number of used instructions, operation will be performed as described below.

  • Page 137

    Sequence instructions Program Example 1) Program using MPS, MRD and MPP Coding ・...

  • Page 138: Output Instructions : Bit Device, Timer, Counter

    Sequence instructions 3.25.4 Output instructions : bit device, timer, counter ... OUT Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) Bit device Device Timer Setting Device Counter Setting (Y, M) Device number Setting Any of 1 to 32767 is valid Device number (T0 to 15) Setting Any of data register...

  • Page 139

    Sequence instructions OUT(T) (1) When the operation result up to the OUT instruction is ON, the coil of the timer turns on and the timer times up to the setting, and when the timer times out (timing value ≥ setting), the contact operates as indicated below. N/O contact Energize N/C contact...

  • Page 140

    Sequence instructions Program Examples 1) Program that outputs to the output module. Coding 2) Program that turns on Y10 and Y14 10s after X0 has turned on. Coding 3) Program that turns on Y0 when X0 turns on 10 times and turns off Y0 when X1 turns Coding 4) Program that changes the C0 setting to 10 when X0 turns on and to 20 when X1 turns on.

  • Page 141: Output Instructions : Device Set, Reset

    Sequence instructions 3.25.5 Output Instructions : Device set, reset ... SET, RST Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) SET input Device number to be set (turned RST input Device number to be reset Functions (1) Turns on the specified device when the SET input turns on.

  • Page 142

    Sequence instructions (3) The function of RST (D) is the same as that of the following ladder. RST input RST input Device number Device number Execution Conditions The SET and RST instructions are executed every scan. REMARKS Three steps are used when the following device is used. SET instruction ...

  • Page 143

    Sequence instructions 2) Program that resets the data register contents to 0. Stores X10 to 1F contents into D8 when X0 turns on. Resets D8 contents to 0 when X5 turns on. Coding 3) Program that resets the 100ms retentive timer and counter. When T5 is set as retentive timer, T5 turns on when ON period of X4 reaches 30 minutes.

  • Page 144: Output Instructions : Leading Edge, Trailing Edge Differential Outputs

    Sequence instructions 3.25.6 Output instructions : leading edge, trailing edge differential outputs ... PLS, PLF Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) PLS command Set data Device number whose data will be converted into pulses PLF command Functions (1) Turns the specified device on when the PLS command turns from OFF to ON,...

  • Page 145

    Sequence instructions (1) Turns the specified device on one scan when the PLF command turns from ON to OFF, and turns it off except when the PLF command turns from ON to OFF. When there is one PLF instruction for the device specified at during one scan, the specified device turns on for one scan.

  • Page 146: Shift Instructions : Bit Device Shift

    Sequence instructions 3.25.7 Shift Instructions : Bit device shift ... SFT, SFTP Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) SFT commands Set data Device number to which data will be shifted Functions (1) Shifts the ON/OFF status of the device preceding the one specified at to the specified device, and turns off the preceding device.

  • Page 147

    Sequence instructions Program Example 1) Program that shifts the Y7 - B data when X8 turns on. Executes shifts when X8 turns on. Program in order of larger to smaller device numbers. Turns on Y7 when X7 turns on. Coding...

  • Page 148: Master Control Instructions : Master Control Set, Reset

    Sequence instructions 3.25.8 Master control instructions : master control set, reset ... MC, MCR Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) Set data MC ON/OFF command Nesting (N0 to 7) Device number to be turned on Device Nesting (N0 to 7)

  • Page 149

    Sequence instructions (1) When the MC ON/OFF command is on at the start of master control, the operation results between MC and MCR are as performed by the instructions (ladder). (2) If the MC instruction is off, the scan between the MC and MCR instructions is executed, and therefore, the scan time does not become short.

  • Page 150

    Sequence instructions (1) This instruction is designed to reset the master control and indicates the end of the master control range. (2) Do not provide a contact instruction in front of the MCR instruction. The master control instructions can be nested. Their master control ranges are differentiated by the nesting (N).

  • Page 151

    Sequence instructions Note the following when nesting the instructions. (1) The instructions can be nested to a level of eight (N0 to 7). When nesting them, use MC from lower to higher nesting (N) numbers and MCR from higher to lower numbers.

  • Page 152: End Instruction : Sequence Program End

    Sequence instructions 3.25.9 End Instruction : Sequence program end ... END Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) Functions (1) Indicates the end of a program. Execution terminates scanning at this step and returns to step 0.

  • Page 153: 10other Instructions : No Operation

    Sequence instructions 3.25.10 Other Instructions : No operation ... NOP Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) NOP does not appear in ladder display. Functions (1) No-operation instruction that has no influence on the preceding operation. (2) Use NOP to: 1) Provide space for debugging of a sequence program.

  • Page 154

    Sequence instructions Program Examples 1) Contact short-circuit (AND, ANI) Coding Before change Replaced by NOP. After change Coding 2) Contact short-circuit (LD, LDI)..Note that if LD or LDI is replaced by NOP, the ladder will be completely changed. Before change Coding Replaced by NOP.

  • Page 155: Basic Instructions (16-bit)

    Basic instructions (16-bit) 3.26 Basic instructions (16-bit) The basic instructions (16-bit) can handle numerical data represented in 16-bit. 3.26.1 Comparison Operation Instructions (1) The comparison operation instruction is handled as a contact, compares the magnitudes of two pieces of data (e.g. =, >, <), and turns on when the condition holds.

  • Page 156

    Basic instructions (16-bit) CAUTION The comparison instruction regards the specified data as BIN values. Hence, if the value whose most significant bit (b15) is 1 (8 to F) is specified for comparison of hexadecimal data, it is regarded as a negative BIN value. Example Comparison of 4-digit HEX values Regarded...

  • Page 157: Comparison Operation Instructions

    Basic instructions (16-bit) 3.26.2 Comparison Operation Instructions : 16-bit data comparison ... =, <>, >, <=, <, >= Usable Devices Error Flag Digit Bit devices Word (16-bit) devices Constants Level Designation (M9010, M9011) K1 to K4 Instruction symbol in =, <>, >, <=, <, >= Compared data or head numbers of devices that store compared data...

  • Page 158

    Basic instructions (16-bit) REMARKS Seven steps are used when: • The digit designation of a bit device is not K4. • The beginning of a bit device is not a multiple of 8. Program Examples 1) Program that compares the X0-F data and D3 data. Coding <>...

  • Page 159: Arithmetic Operation Instructions

    Basic instructions (16-bit) 3.26.3 Arithmetic Operation Instructions The arithmetic operation instructions are instructions which perform the addition, subtraction, multiplication, and division of two BIN data. (1) Arithmetic operation with BIN (Binary) • If the operation result of an addition instruction exceeds 32767 , the result becomes a negative value.

  • Page 160: Arithmetic Operation Instructions : Bin 16-bit Addition, Subtraction

    Basic instructions (16-bit) 3.26.4 Arithmetic Operation Instructions : BIN 16-bit addition, subtraction ... +, +P, -, -P Usable Devices Error Flag Word (16-bit) Digit Bit devices Constants Level devices Designation (M9010, M9011) K1 to K4 Instruction symbol in Addition/subtraction commands +, - Setting data Addend/subtrahend or...

  • Page 161

    Basic instructions (16-bit) Functions (1) Performs the addition of BIN data specifies at and the BIN data specified at , and stores the addition result into the device specified at (2) Performs the addition of BIN data specified at and the BIN data specified at , and stores the addition result into the device specified at (3) At S1 S2...

  • Page 162

    Basic instructions (16-bit) Functions (1) Performs the subtraction of BIN data specifies at and the BIN data specified , and stores the subtraction result into the device specified at (2) Performs the subtraction of BIN data specified at and the BIN data specified , and stores the subtraction result into the device specified at (3) At , -32768 to 32767 (BIN 16 bits) can be specified.

  • Page 163

    Basic instructions (16-bit) Execution Conditions Addition/subtraction command. Addition/subtraction command Executed every Executed every scan. scan. Executed only once. Executed only once. Program Examples Program which adds the content of A0 to the content of D3 and outputs the result to Y38 to 3F when X5 turns on.

  • Page 164: Arithmetic Operation Instructions : Bin 16-bit Multiplication, Division

    Basic instructions (16-bit) 3.26.5 Arithmetic operation instructions : BIN 16-bit multiplication, division ... *, *P, /, /P Usable Devices Error Flag Word (16-bit) Digit Bit devices Constants Level devices Designation (M9010, M9011) K1 to K4 Instruction symbol in Multiplication/division commands ∗...

  • Page 165

    Basic instructions (16-bit) Functions ∗ (1) Performs the multiplication of BIN data specified at and the BIN data specified , and stores the multiplication result into the device specified at (2) When is a bit device, specify the bits, beginning with the lower bits. Example K1: Lower 4 bits (b0 to 3) K4: Lower 16 bits (b0 to 15)

  • Page 166

    Basic instructions (16-bit) (1) Performs the division of BIN data specified at and the BIN data specified at , and stores the result into the device specified at Remainder Quotient (2) In regards to the operation result, the quotient and remainder are stored by use of 32 bits in the case of word device, and only the quotient is stored by use of 16 bits in the case of bit device.

  • Page 167: Operation Errors

    Basic instructions (16-bit) Operation Errors In the following case, operation error occurs and the error flag turns on. • A1 or V has been specified at • The divisor is 0. Program Examples ∗ 1) Program which stores the multiplication result of 5678 and 1234 in BIN to D3 and 4 when X5 turns on.

  • Page 168: Data Transfer Instructions

    Basic instructions (16-bit) 3.26.6 Data transfer instructions The data transfer instructions are designed to transfer data. The data moved by the data transfer instruction is maintained until new data is transferred. 3.26.7 Data transfer instructions : 16-bit data transfer ... MOV, MOVP Usable Devices Error Word (16-bit)

  • Page 169

    Basic instructions (16-bit) Transfer command Executed every Executed every scan. scan. MOVP Executed only once. Executed only once. Program Examples 1) Program that stores the input X0-B data into D8. Coding 2) Program that stores 155 into D8 in binary when X8 turns on. Coding...

  • Page 170: Basic Instructions (32-bit)

    Basic instructions (32-bit) 3.27 Basic instructions (32-bit) The basic instructions (32-bit) can handle numerical data represented in 32-bit. 3.27.1 Comparison Operation Instructions (1) The comparison operation instruction is handled as a contact, compares the magnitudes of two pieces of data (e.g. D=, D>, D<), and turns on when the condition holds.

  • Page 171

    Basic instructions (32-bit) CAUTION The comparison instruction regards the specified data as BIN values. Hence, if the value whose most significant bit (b31) is 1 (8 to F) is specified for comparison of hexadecimal data, it is regarded as a negative BIN value. Example Comparison of 8-digit HEX values D>...

  • Page 172: Comparison Operation Instructions : 32-bit Data Comparison

    Basic instructions (32-bit) 3.27.2 Comparison Operation Instructions : 32-bit data comparison ... D=, D<>, D>, D<=, D<, D>= Usable Devices Error Flag Bit devices Word (16-bit) devices Constants Level Digit Designation (M9010, M9011) K1 to K8 Instruction symbol in D=, D<>, D>, D<=, D<, D>= Compared data or head numbers of devices that store compared data...

  • Page 173

    Basic instructions (32-bit) REMARKS Seven steps are used when: • The digit designation of a bit device is not K8. • The beginning of a bit device is not a multiple of 8. Program Examples 1) Program that compares the M0 to M31 data with D3 and D4 data. Coding LDD= K8M0...

  • Page 174: Arithmetic Operation Instructions

    Basic instructions (32-bit) 3.27.3 Arithmetic Operation Instructions The arithmetic operation instructions are instructions which perform the addition, subtraction, multiplication, and division of two BIN data. (1) Arithmetic operation with BIN (Binary) • If the operation result of an addition instruction exceeds 2147483647 , the result becomes a negative value.

  • Page 175: Arithmetic Operation Instructions : Bin 32-bit Addition, Subtraction

    Basic instructions (32-bit) 3.27.4 Arithmetic Operation Instructions : BIN 32-bit addition, subtraction ... D+, D+P, D-, D-P Usable Devices Error Flag Word (16-bit) Digit Bit devices Constants Level devices Designation (M9010, M9011) K1 to K8 Instruction symbol in Addition/subtraction commands D+, D- Setting data Addend/subtrahend or...

  • Page 176

    Basic instructions (32-bit) Functions (1) Performs the addition of BIN data specifies at and the BIN data specified at , and stores the addition result into the device specified at b16 b15 b16 b15 b16 b15 567890 (BIN) 123456 (BIN) 691346 (BIN) (2) Performs the addition of BIN data specified at and the BIN data specified at...

  • Page 177

    Basic instructions (32-bit) Functions (1) Performs the subtraction of BIN data specifies at and the BIN data specified , and stores the subtraction result into the device specified at D +1 b16 b15 b16 b15 b16 b15 567890 (BIN) 123456 (BIN) 444434 (BIN) (2) Performs the subtraction of BIN data specified at and the BIN data specified...

  • Page 178

    Basic instructions (32-bit) Execution Conditions Addition/subtraction command. Addition/subtraction command Executed every Executed every scan. scan. Executed only once. Executed only once. Program Examples The program where the 28-bit data of X10 to X2B is added to the data of D9 and D10 at turn ON of X0, and the results are output to M0 to M27 Coding X000...

  • Page 179: Arithmetic Operation Instructions : Bin 32-bit Multiplication, Division

    Basic instructions (32-bit) 3.27.5 Arithmetic operation instructions : BIN 32-bit multiplication, division ... D*, D*P, D/, D/P Usable Devices Error Flag Word (16-bit) Digit Bit devices Constants Level devices Designation (M9010, M9011) K1 to K8 Instruction symbol in Multiplication/division commands D ∗...

  • Page 180

    Basic instructions (32-bit) Functions D ∗ (1) Performs the multiplication of BIN data specified at and the BIN data specified , and stores the multiplication result into the device specified at b16 b15 b16 b15 b63 b48 b47 b32 b31 b16 567890 (BIN) 123456 (BIN) 70109427840 (BIN)

  • Page 181

    Basic instructions (32-bit) (1) Performs the division of BIN data specified at and the BIN data specified at , and stores the result into the device specified at Remainder Quotient b31 b16 b31 b16 b31 b16 567890 (BIN) 123456 (BIN) 4 (BIN) 74066 (BIN) (2) In regards to the operation result, the quotient and remainder are stored by use of...

  • Page 182

    Basic instructions (32-bit) Operation Errors In the following case, operation error occurs and the error flag turns on. • When A1 or V is assigned to . When A0, A1, Z, or V is assigned to • The divisor is 0. Program Examples D ∗...

  • Page 183: Data Transfer Instructions

    Basic instructions (32-bit) 3.27.6 Data transfer instructions The data transfer instructions are designed to transfer data. The data moved by the data transfer instruction is maintained until new data is transferred. 3.27.7 Data transfer instructions : 32-bit data transfer ... DMOV, DMOVP Usable Devices Error Word (16-bit)

  • Page 184

    Basic instructions (32-bit) Transfer command Executed every Executed every DMOV scan. scan. DMOVP Executed only once. Executed only once. Program Examples DMOV 1) The program where the data of D2 and D3 is saved in D0 and D1. Coding DMOV DMOVP D2 2) The program where the data of M0 to M31 is saved in D0 and D1.

  • Page 185: Application Instructions

    Application instructions 3.28 Application instructions Application instructions are used when special processing is required. 3.28.1 Logical operation instructions (1) The logical operation instructions are instructions which perform the logical operations such as logical add and logical product. (2) The logical operation instructions are available in the following 10 types. Instruction Instruction Instruction...

  • Page 186: Logical Operation Instructions : 16-bit Logical Product

    Application instructions 3.28.2 Logical operation instructions : 16-bit logical product ... WAND, WANDP Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) K1 to K4 WAND Operation commands WAND Data to be ANDed or head numbers of devices that store data WANDP...

  • Page 187

    Application instructions (2) ANDs the 16-bit data of the device specified at and the 16-bit data of the device specified at on a bit-by-bit basis, and stores the result into the device specified at 16 bits Before execution After execution (3) More than the digit designation of a bit device is regarded as 0 for operation.

  • Page 188

    Application instructions 2) Program that ANDs the X10-1B and D33 data and outputs the result to Y0-B when XA turns on. ANDs X10-1B data and D33 data and stores result to D33. Outputs D33 data to Y0-F. Coding b15 b14 b13 b12 b11 b10 X1B X1A X19 X18 X17 X16 X15 X14 X13 X12 X11 X10 X1B to 10...

  • Page 189: Logical Operation Instructions : 16-bit Logical Add

    Application instructions 3.28.3 Logical operation instructions : 16-bit logical add ... WOR, WORP Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) K1 to K4 Operation commands Data to be ORed or head numbers of devices that store data WORP Operation...

  • Page 190

    Application instructions (2) ORs the 16-bit data of the device specified at and the 16-bit data of the device specified at on a bit-by-bit basis, and stores the result into the device specified at 16 bits Before execution After execution (3) More than the digit designation of a bit device is regarded as 0 for operation.

  • Page 191

    Application instructions 2) Program that ORs the X10-1B and D33 data and outputs the result to Y0-F when XA turns on. ORs X10-1B and D33 and stores result into D33. Outputs D33 data to Y0-F. Coding 3) Program that ORs the D10 and D20 data and stores the result into D33 when XA turns on.

  • Page 192: Logical Operation Instructions : 16-bit Exclusive Logical Add

    Application instructions 3.28.4 Logical operation instructions : 16-bit exclusive logical add ... WXOR, WXORP Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) K1 to K4 WXOR Operation commands Data for which WXOR exclusive OR will be performed or head number of device which WXORP...

  • Page 193

    Application instructions Functions WXOR (1) Performs the exclusive OR of the 16-bit data of device specified at and the 16-bit data of device specified at per bit, and stores the result into the device specified at 16 bits Before execution After execution (2) Performs the exclusive OR of the 16-bit data of device specified at...

  • Page 194

    Application instructions Program Examples WXOR 1) Program which performs exclusive OR of the data of D10 and that of D20, and stores the result to D10 when XA turns on. 2) Program which performs the exclusive OR of the data of X10 to 1B and data of D33, and sends the result to the Y30 to 3B when XA turns on.

  • Page 195: Logical Operation Instructions : 16-bit Not Exclusive Logical Add

    Application instructions 3.28.5 Logical operation instructions : 16-bit not exclusive logical add ... WXNR, WXNRP Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) K1 to K4 WXNR Operation commands Data for which WXNR exclusive NOR will be performed or head number of device which...

  • Page 196

    Application instructions Functions WXNR (1) Performs the exclusive NOR of the 16-bit data of device specified at and the 16-bit data of device specified at per bit, and stores the result into the device specified at 16 bits Before execution After execution (2) Performs the exclusive NOR of the 16-bit data of device specified at...

  • Page 197

    Application instructions Program Examples WXNR 1) Program which compares the bit pattern of the 16-bit data of X30 to 3F and that of the 16-bit data of D99 and stores the number of the same bit patterns and the number of different bit patterns to D7 and 8, respectively, when XC turns on. 2) Program which compares the bit pattern of the 16-bit data of X30 to 3F and that of the data of D99 and stores the result to D7 when X0 turns on.

  • Page 198: Logical Operation Instructions : Bin 16-bit 2's Complement

    Application instructions 3.28.6 Logical operation instructions : BIN 16-bit 2’s complement ... NEG, NEGP Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) K1 to K4 2's complement execution commands Head number of device which stores data for which 2’s complement will be performed...

  • Page 199

    Application instructions Execution Conditions 2's complement execution command Executed every Executed every scan. scan. NEGP Executed only once. Executed only once. Program Examples 1) Program which calculates "D10 - D20" when XA turns on, and obtains the absolute value when the result is negative.

  • Page 200: Display Command

    Display command 3.29 Display command 3.29.1 PU display function command ... PR Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) S2 S Set data The first character of the device ASCII print command where the ASCII code is saved.

  • Page 201

    Display command (1) Set data: monitors Upper 8 Lower 8 bits bits ← Set the corresponding monitor number in the upper 8 bits, and set "01" in the lower 8 bits. ← Monitored item name: first character character character character character character character...

  • Page 202

    Display command (2) Set data: faults Upper 8 Lower 8 bits bits ← Set the corresponding fault number in the upper 8 bits, and set "02" in the lower 8 bits. ← Fault name: first character character character character character character character character...

  • Page 203

    Display command (3) Set data: parameters Upper 8 Lower 8 bits bits ← Set the corresponding parameter number in the upper 8 bits, and set "03" in the lower 8 bits. ← Parameter name: first character character character character character character character character...

  • Page 204

    Display command (4) Number of selectable items Number of Set data selectable items Monitor (Refer to page 194.) Up to 3 items Fault (Refer to page 195.) Up to 5 items Parameter (Refer to page 196.) Up to 10 items If a set data is set exceeding the number of selectable items, the calculation error (error code 50) occurs at execution of the setting.

  • Page 205: Ascii Code Conversion Command

    Display command 3.29.2 ASCII code conversion command ... ASC Usable Devices Error Word (16-bit) Flag Bit devices Constants Level Digit devices Designation (M9010, M9011) Set data Conversion command The first character of the device where the ASCII code is saved ASCII characters (8 characters) Functions...

  • Page 206

    Display command Execution Conditions See below for the execution conditions of the ASC command. Conversion command Executed Executed only once only once Program Examples Program which converts "ABCDEFGHIJKLMNOP" into the ASCII code and stores the result to the D88 to 95 when X8 turns on. X008 Eight characters, A to H, are converted into ASCII ABCDEFGH...

  • Page 207

    MEMO...

  • Page 208: Error Code List

    4. ERROR CODE LIST 4.1 How to read the error code......... 202 Chapter 1 Chapter 2 Chapter 3 Chapter 4...

  • Page 209: How To Read The Error Code

    How to read the error code When the built-in PLC function is in the RUN status or if an alarm occurs during RUN, the self-diagnostic function displays the error and stores the error code and error step into the special registers. This chapter describes the error definitions and corrective actions.

  • Page 210: Corrective Action

    How to read the error code Error Error Name Code Status Definition and Cause Corrective Action (D9008) (1) Divided by zero (1) Read the error step by use of peripheral device, and check and correct the program at that step. (2) When using the PR command “OPERATION...

  • Page 211

    MEMO...

  • Page 212: Appendix

    APPENDIX Appendix 1 Instruction processing time....206...

  • Page 213: Appendix 1 Instruction Processing Time

    Instruction processing time Appendix 1 Instruction processing time Condition Number Processing Condition Number Processing Instruction Instruction (Device) of Steps Time (μs) (Device) of Steps Time (μs) 10.3 WORP 10.7 10.2 WORP 10.6 WXOR 10.4 WXORP 10.8 WXOR 10.3 WXORP 10.7 WXNR 10.5 WXNRP...

  • Page 214

    Instruction processing time Condition Number Processing Condition Number Processing Instruction Instruction (Device) of Steps Time (μs) (Device) of Steps Time (μs) AND> 10.3 AND> 10.7 ANDD> 14.9 10.3 AND<= 10.7 AND<= 15.5 ANDD<= 14.9 16.1 AND< 15.6 AND< 16.1 ANDD< 15.0 10.3 AND>=...

  • Page 215

    REVISIONS *The manual number is given on the bottom left of the back cover Print Date *Manual Number Revision May 2010 IB(NA)-0600420ENG-A First edition Jul. 2010 IB(NA)-0600420ENG-B Addition • D9213 PID measured value 2 • D9228 BACnet reception status Mar. 2012 IB(NA)-0600420ENG-C Addition •...

  • Page 216

    IB(NA)-0600420ENG-C(1203)MEE Printed in Japan Specifications subject to change without notice.

Comments to this Manuals

Symbols: 0
Latest comments: