Download Print this page

Mitsubishi Electric A800 Programming Manual

800 series, plc function.
Hide thumbs

Advertisement

INVERTER
A800/F800
PLC FUNCTION
PROGRAMMING MANUAL
PLC Function
CC-Link communication
Sequence program
Error code list
1
2
3
4

Advertisement

Chapters

   Summary of Contents for Mitsubishi Electric A800

  • Page 1

    INVERTER A800/F800 PLC FUNCTION PROGRAMMING MANUAL PLC Function CC-Link communication Sequence program Error code list...

  • Page 2: Table Of Contents

    CONTENTS 1 PLC Function Applicable inverter model ..................8 Function block diagram ..................8 Operation panel indication..................9 PLC function specifications.................. 10 System configuration .................... 11 Operations of PLC function (Pr.414, Pr.415, Pr.498, Pr.1150 to Pr.1199) ..12 Prior to creating sequence programs ..............13 1.7.1 Precautions for creating sequence programs................

  • Page 3

    1.14 PID control ......................52 1.15 Clearing the flash memory of the PLC function ..........53 1.16 Constant scan......................54 2 CC-Link communication System configuration..................... 56 2.1.1 System configuration example...................... 56 2.1.2 Function block diagram......................... 57 CC-Link parameter ....................58 2.2.1 CC-Link extended setting (Pr.544) ....................

  • Page 4

    Values that can be used in sequence programs..........82 3.8.1 BIN (binary) ..........................83 3.8.2 HEX (hexadecimal)........................84 Explanation of devices ..................85 3.9.1 Device list ............................. 85 3.9.2 I/O X and Y ........................... 86 3.9.3 Internal relay M ..........................87 3.9.4 Timer T ............................

  • Page 5

    3.25 Sequence instructions..................119 3.25.1 Contact instruction: operation start, series connection, parallel connection ... LD, LDI, AND, ANI, OR, ORI .... 119 3.25.2 Association instruction: ladder block series connection, parallel connection ... ANB, ORB ..121 3.25.3 Association instruction: operation results, push, read, pop ... MPS, MRD, MPP ............. 123 3.25.4 Output instruction: bit device, timer, counter ...

  • Page 6

    3.27.7 Data transfer instruction ......................167 3.27.8 Data transfer instruction: 32-bit data transfer ... DMOV, DMOVP ..................167 3.27.9 Data conversion instruction: 2's complements of BIN 32-bit data ... DNEG, DNEGP.............. 169 3.27.10 Data conversion instructions: BIN 32-bit data BCD conversions ... DBCD, DBCDP ..............170 3.27.11 Data conversion instructions: BIN 32-bit data BIN conversions ...

  • Page 7

    About the related manuals The manuals related to A800/F800 PLC function are shown below. The download of the latest manuals is free at the Mitsubishi Electric FA Global Website. Related manuals Manual name Manual number FR-A800 Instruction Manual (Startup) IB-0600493...

  • Page 8: Plc Function

    PLC Function This instruction manual explains the functions and devices required for programming. Applicable inverter model ................Function block diagram ................. Operation panel indication................PLC function specifications................System configuration ..................Operations of PLC function (Pr.414, Pr.415, Pr.498, Pr.1150 to Pr.1199) .. Prior to creating sequence programs ............

  • Page 9: Applicable Inverter Model

    Applicable inverter model Applicable inverter model This manual explains the PLC function of the FR-A800/F800 series. Function block diagram The following function blocks explain I/O information flow to and from the inverter in the PLC function. • I/O information can be read or written by accessing the inverter with special relays, special registers, etc. using predetermined methods.

  • Page 10: Operation Panel Indication

    Operation panel indication Operation panel indication When a sequence program is running, the following indicators are displayed on the operation panel and parameter unit. P.RUN appears on the PLC function indicator display when the PLC function is enabled. P.RUN 60.00 Output frequency 12:34 STF FWD PU...

  • Page 11: Plc Function Specifications

    PLC function specifications PLC function specifications The following table shows the program capacity and devices of the PLC function. Item A800/F800 PLC function specifications Control method Repeated operation (by stored program) I/O control mode Refresh Relay symbolic language (ladder) Programming language...

  • Page 12: System Configuration

    • Recommended USB cable for connection between the personal computer and the inverter Model Manufacturer MR-J3USBCBL3M (cable length: 3 m) Mitsubishi Electric Corporation POINT POINT • FR Configurator2 (Developer) is a programming tool for designing and debugging of the sequence programs on the Windows personal computer.

  • Page 13: Operations Of Plc Function (pr.414, Pr.415, Pr.498, Pr.1150 To Pr.1199)

    Operations of PLC function (Pr.414, Pr.415, Pr.498, Pr.1150 to Pr.1199) Operations of PLC function (Pr.414, Pr.415, Pr.498, Pr.1150 to Pr.1199) I/O information can be read or written by accessing the inverter with special relays, special registers, etc. using predetermined methods. It is possible to operate the inverter and read and write parameters using input information from control input terminals according to created sequence programs (saved in the inverter).

  • Page 14: Prior To Creating Sequence Programs

    Prior to creating sequence programs Prior to creating sequence programs 1.7.1 Precautions for creating sequence programs POINT POINT • Writing and access to other stations are not possible while a sequence program is running. Also, reading and writing the program from and to other stations cannot be performed. •...

  • Page 15: Sequence Program Execution

    Prior to creating sequence programs 1.7.3 Sequence program execution Parameter Initial Setting Name Description number value range PLC function disabled The SQ signal is enabled by input from a PLC function operation command source (external input terminal/  selection communication). function enabled The SQ signal is enabled by input from an...

  • Page 16: Setting The Communication Parameter

    Prior to creating sequence programs 1.7.4 Setting the communication parameter POINT POINT • For RS-485 communication between the inverter and FR Configurator2, communication cannot be established when the inverter communication parameter settings and the FR Configurator2 communication settings differ. • Set "9999" in Pr.122 PU communication check time interval for communication using the PU connector, and set "9999" in Pr.336 RS-485 communication check time interval for communication with RS-485 terminals.

  • Page 17: Writing Sequences Programs

    Prior to creating sequence programs 1.7.5 Writing sequences programs POINT POINT • Sequence programs can be written in any operation mode (External operation mode, PU operation mode and Network operation mode). For the operation modes, refer to the Instruction Manual (Detailed) of the inverter. Check the following points when rewriting the PLC function parameters and sequence programs using FR Configurator2 (Developer): •...

  • Page 18: Device Map

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

  • Page 19

    Device map Device Device Name Remarks Name Remarks number number Operation mode setting Operation mode setting SD1140 SD1140 read complete read command Set frequency read Set frequency read SD1141 SD1141 complete (RAM) command (RAM) Set frequency read Set frequency read SD1142 SD1142 complete (EEPROM)

  • Page 20: Internal Relay (m) Device Map

    Device map 1.8.2 Internal relay (M) device map Device number Description M0 to M127 Available for users. 1.8.3 Data register (D) device map Refer to Device number Description page D0 to D205 Available for users. Pr.1150 to Pr.1199 D206 to D255 Parameters for user setting.

  • Page 21

    Device map Device number Name Description Inverter operating status SM1205 Flag used for controlling the inverter terminal JOG. control flag (JOG) Inverter operating status SM1206 Flag used for controlling the inverter terminal RT. control flag (RT) Inverter operating status SM1207 Flag used for controlling the inverter terminal AU.

  • Page 22

    Device map Device number Name Description Set the object as 2 word parameter when inverter parameter write is 2-word parameter access executed using X28 to X2B, Y28 to Y2B. SM1257 setting OFF: Carries out writing as 1-word parameter. ON: Carries out writing as 2-word parameter. Clock data setting Turned ON when the clock data is set using an external peripheral device, SM1258...

  • Page 23: Special Register

    Device map 1.8.5 Special register Special register is a data register in which the application is already determined in the PLC function. Therefore, do not write data into the special register on the program. Device Name Description Page number Self-diagnostic error Error code is stored when an error is detected by self diagnosis.

  • Page 24

    Device map Device Name Description Page number When the common information category code is 2, the file name or drive name are stored in SD5 to SD11. Number Description Drive name. File name (ASCII code: 8 characters) SD5 to Common error information SD15 SD10 Extension...

  • Page 25

    Device map Device Name Description Page number When the individual information category code is 3, the time (actual measured data) is stored in SD16 and SD17. Number Description SD16 Time: in 1 μs increments (0 to 999 μs) SD17 Time: in 1 ms increments (0 to 65535 ms) SD18 to Empty SD16 to...

  • Page 26

    Device map Device Name Description Page number Year (the first two digits of the year) and day of the week are stored in BCD code. SD213 Clock data Sunday First two digits of the year Monday Tuesday Wednesday Thursday Friday Saturday SD286 Number of points...

  • Page 27

    Device map Device Name Description Page number Scan time is stored at every END, and is constantly updated. SD520 (Measured in 100 μs increments) Current scan time SD520: Stores the millisecond places (Stored range: 0 to 65535) SD521 SD521: Stores the microsecond places (Stored range: 0 to 900) Minimum scan time is stored at every END.

  • Page 28

    Device map Device Name Description Page number The inverter operating status control by SD1148 and SM1200 to SM1211 can be enabled/disabled by turning ON/OFF the corresponding bit. Inverter operating status control SD1149 The bit table is the same as SD1148. enable/disable setting All initial values are set to "0"...

  • Page 29

    Device map Device Name Description Page number SD1169 Orientation status Stores the orientation status.  SD1170 Actual operation time 1 hour increments SD1171 Motor load factor 0.1% increments SD1172 Cumulative power 1 kWh increments Position command (lower 16 SD1173 Stores the position command setting value (lower 16 bits). bits) ...

  • Page 30

    Device map Device Name Description Page number Stores the input status of the FR-A8AX. All are OFF (0) when there are no options installed. b12 b11 b8 b7 b4 b3 0:OFF SD1205 1:ON SD1205 Option input terminal status 1 SD1206 Option input terminal status 2 b12 b11 b8 b7...

  • Page 31

    Device map Device Name Description Page number 32-bit cumulative power SD1226 0.01 kWh/0.1 kWh  (Lower 16 bits) 32-bit cumulative power SD1227 0.01 kWh/0.1 kWh  (Upper 16 bits) SD1228 BACnet reception status Stores the reception status of BACnet communication. ...

  • Page 32

    Always for the STF signal in the Network operation mode. Changing the function with Pr.178 is disabled.  Always for the STR signal in the Network operation mode. Changing the function with Pr.179 is disabled.  The Pr.811 setting is available only for the FR-A800 series.  Monitoring is available only for the FR-A800 series. ...

  • Page 33: Special Registers To Monitor And Control Inverter Status

    Special registers to monitor and control inverter status Special registers to monitor and control inverter status Read from and write to user sequences are possible by assigning the data to monitor and change the operating status of the inverter from SD1133 to SD1147. (For the list of registers, refer to page 22.) 1.9.1...

  • Page 34

    E.BE E.CTE E.MB5   Occurs only for the FR-A800 series.  Occurs only for the IP55 compatible models. For details of fault records, refer to the Instruction Manual of the inverter. <Program example for reading a fault record> The following description is of a program that reads out the latest fault record of the inverter and stores to D0.

  • Page 35

    Special registers to monitor and control inverter status Fault clear signal (X51 signal) When an inverter fault occurs, X51 signal clears the fault without resetting the inverter. By using the X51 signal, the inverter fault can be cleared with the PLC function still operating. Set "51"...

  • Page 36

    Special registers to monitor and control inverter status Self-diagnostic error, error number and details When an operation error occurs during execution of sequence programs, the following error numbers are stored in SD0. When a self-diagnostic error occurs, the "P.RUN" indicator (LED) blinks. Error No.

  • Page 37: Data Read By Controlling Read Command (from Off To On)

    Special registers to monitor and control inverter status 1.9.2 Data read by controlling read command (from OFF to ON) The operation mode and set frequency of the inverter can be read. Device Read Read Name Data access condition number instruction completion SD1140 Operation mode setting read...

  • Page 38

    The frequency set in RAM can be read out from SD1141. Its increment is 0.01 Hz. (For example, "6000" means 60.00 Hz.) If the rotation rate is set, the increment is 1 r/min or 0.1 r/min according to the setting value of Pr.811. (FR-A800 series only) <Program example of reading the set frequency (RAM)>...

  • Page 39: Data Writing Method By Controlling Write Command (from Off To On)

    Special registers to monitor and control inverter status 1.9.3 Data writing method by controlling write command (from OFF to ON) Writing of an operation mode and setting frequency to the inverter, a batch clear of fault records, and all parameter clear can be executed.

  • Page 40

    (For example, 60.00 Hz is written as "6000".) If the rotation rate is set, the increment is 1 r/min or 0.1 r/min according to the setting value of Pr.811. (FR-A800 series only) The frequency can be set within the range of 0 to 12000 (0 to 120.00 Hz).

  • Page 41

    (For example, 60.00 Hz is written as "6000".) If the rotation rate is set, the increment is 1 r/min or 0.1 r/min according to the setting value of Pr.811. (FR-A800 series only) The frequency can be set within the range of 0 to 12000 (0 to 120.00 Hz).

  • Page 42

    Special registers to monitor and control inverter status Batch clear of fault records (SD1146) When H9696 is written to SD1146, fault records are cleared in a batch. When clearing is completed, the write completion signal (X26) turns ON at the same time as SD1150 is set to "0". Executing writing with any value that is outside the specified range or writing while the inverter is running causes the write completion signal (X26) to turn ON at the same time as setting HFFFF in SD1150, resulting in error completion.

  • Page 43: Inverter Operating Status Control

    Special registers to monitor and control inverter status <Program example of clearing all parameters> The following description is of the program that clears all parameters. All parameter clear request Turns ON all parameter clear request pulse. Check whether all parameter SD1150 clear signal is turned ON to judge Normal write...

  • Page 44

    Special registers to monitor and control inverter status Inverter operating status control enable/disable setting (SD1149) The inverter operating status control by SD1148 and SM1200 to SM1211 can be enabled/disabled. Control of the bits of SD1148 and SM1200 to SM1211 are enabled by turning the corresponding bits b0 to b11 of SD1149 ON/OFF (1, 0). All initial values are "0".

  • Page 45: Inverter Parameter Access Error (sd1150)

    Special registers to monitor and control inverter status 1.9.5 Inverter parameter access error (SD1150) Device Name Data access condition number SD1150 Inverter parameter access error Always accessible When an out-of-range setting value is written to a parameter or an out-of-range frequency is set using sequence programs, or when writing is attempted while writing is disabled, a write error occurs and an error code is stored in SD1150.

  • Page 46: User-defined Error (sd1214)

    Special registers to monitor and control inverter status 1.9.7 User-defined error (SD1214) By setting the values "16 to 20" in SD1214, alarms for the inverter can be created. When an alarm occurs, the inverter stops. Values other than "16 to 20" are invalid. Furthermore, this function is disabled when Pr.414 = "0". The created alarms are recognized as E.16 to E.20 by the inverter.

  • Page 47: Read/write Method Of Inverter Parameters

    Read/Write method of inverter parameters 1.10 Read/Write method of inverter parameters 1.10.1 Reading inverter parameters Device Data access condition Name Command Completion number (Operation mode) SD1241 Parameter number (RAM) SD1242 Parameter content (RAM) SD1234 Second parameter change (RAM) SD1320 2-word parameter content (lower) (RAM) SD1321 2-word parameter content (upper) (RAM) Always allowed...

  • Page 48: Writing Inverter Parameters

    Read/Write method of inverter parameters 1.10.2 Writing inverter parameters Device Data access condition Name Command Completion number (Operation mode) SD1241 Parameter number (RAM) SD1242 Parameter content (RAM) SD1234 Second parameter change (RAM) SD1320 2-word parameter content (lower) (RAM) SD1321 2-word parameter content (upper) (RAM) PU or NET operation mode (depending on Pr.77) SD1243...

  • Page 49

    Read/Write method of inverter parameters Inverter parameter data write timing chart 1) In user sequence program, user data 4) After confirmation of write are stored into parameter write 2) Write command is turned completion, write command data area (SD1242(SD1244)). ON in user sequence. is turned OFF.

  • Page 50: User Area Reading/writing

    User area reading/writing 1.11 User area reading/writing Inverter parameters Pr.1150 to Pr.1199 can be used as user parameters. Since this parameter area and the devices D206 to D255 used in PLC function are accessible to each other, values set in Pr.1150 to Pr.1199 are available in sequence programs.

  • Page 51: Analog I/o Function

    SD1246 Terminal 2 input 0.1% Always allowed SD1247 Terminal 4 input 0.1% Always allowed (FR-A800 SD1300 Terminal 6 input (FR-A8AZ) 0.1% series only) The actual reading is performed at END processing of the sequence program. NOTE • The full scale value of analog input (terminals 1, 2, and 4) depends on the setting values of Pr.73 Analog input selection and Pr.267 Terminal 4 input selection.

  • Page 52: Pulse Train Input Function

    Pulse train input function 1.13 Pulse train input function Pulse train input values from terminal JOG can be read with the PLC function. To read pulse train input values with the PLC function, set the terminal JOG by setting Pr.291 Pulse train I/O selection = "1, 11, 21, or 100"...

  • Page 53: Pid Control

    PID control 1.14 PID control Set Pr.128 (Pr.753) to enable setting of set point/ deviation and measured value for PID control with PLC function. PID operation is performed using the value of SD1248 (SD1308) as the set point/deviation, and the value of SD1249 (SD1309) as the measured value.

  • Page 54: Clearing The Flash Memory Of The Plc Function

    Clearing the flash memory of the PLC function NOTE • Depending on the setting value of Pr.128 (Pr.753), SD1248 (SD1308) automatically switches between set point and deviation. • When Pr.128 (Pr.753) is set to deviation input "70, 71, 90, or 91", the value set as the measured value in (SD1249 (SD1309)) becomes invalid.

  • Page 55: Constant Scan

    Constant scan 1.16 Constant scan A constant scan time can be maintained for the sequence programs. Configure the setting using FR Configurator2 (Developer). PLC parameter Name Initial value Setting range PLC RAS setting Constant scan setting None 0.5 ms to 2000 ms •...

  • Page 56: Cc-link Communication

    CC-Link communication System configuration ..................CC-Link parameter..................CC-Link I/O specifications ................Buffer memory ....................CC-Link communication...

  • Page 57: System Configuration

    System configuration System configuration 2.1.1 System configuration example • Programmable controller side Mount the "CC-Link system master/local module" on the main base unit or extension base unit that uses the programmable controller CPU as the master station. • Use the CC-Link dedicated cable to connect the CC-Link programmable controller module (master station) to the inverter. Inverter Inverter Master station...

  • Page 58: Function Block Diagram

    System configuration 2.1.2 Function block diagram The following function blocks explain the I/O information flow to and from the inverter in CC-Link. • Link refresh between the master station of CC-Link system and the inverter is continuously performed at 3.5 to 18 ms (512 points).

  • Page 59: Cc-link Parameter

    CC-Link parameter CC-Link parameter 2.2.1 CC-Link extended setting (Pr.544) The functions of the remote register can be extended. Parameter Initial Setting Name Description CC-Link number value range version Occupies one station (FR-A5NC compatible)  Occupies one station Occupies one station, double ...

  • Page 60: Cc-link I/o Specifications

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

  • Page 61

    CC-Link I/O specifications PLC function Remote output PLC function Remote input Signal name Signal name device number device number device number device number RY (n + 1) 0 RX (n + 1) 0  Reserved  Reserved RY (n + 1) 7 RX (n + 1) 7 Unused Unused...

  • Page 62: I/o Signals When The Double Setting Is Set In Cc-link Ver.2 (pr.544 = "112")

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

  • Page 63

    RWwn + 7 SD1081 RWrn + 7 ("n" indicates a value determined by the station number setting.)  Under torque control by Real sensorless vector control or vector control for the FR-A800 series (Pr.804 = "3 or 5") CC-Link communication...

  • Page 64: I/o Signals When The Quadruple Setting Is Set In Cc-link Ver.2 (pr. 544 = "114")

    RWwn + F SD1085 RWrn + F ("n" indicates a value determined by the station number setting.)  Under torque control by Real sensorless vector control or vector control for the FR-A800 series (Pr.804 = "3 or 5") CC-Link communication...

  • Page 65: I/o Signals When The Octuple Setting Is Set In Cc-link Ver.2 (pr. 544 = "118 Or 128")

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

  • Page 66

    CC-Link I/O specifications Description Description PLC function PLC function Address Address Upper Lower Upper Lower device number device number 8 bits 8 bits 8 bits 8 bits SD1062 RWwn + 10 SD1078 RWrn + 10 SD1063 RWwn + 11 SD1079 RWrn + 11 SD1064 RWwn + 12...

  • Page 67: Buffer Memory

    Buffer memory Buffer memory 2.4.1 Remote output signals (master station to inverter (FR-A8NC)) • Input statuses to the remote device station are stored. • Each station uses two words. (Do not use address 16n (n = 2 (X - 1) + 1, X = station number).) Inverter FR-A8NC Remote device station...

  • Page 68: Remote Input Signals Pr.544 = "100" (inverter (fr-a8nc) To Master Station)

    Buffer memory 2.4.2 Remote input signals Pr.544 = "100" (inverter (FR- A8NC) to master station) • Input statuses from the remote device station are stored. • Each station uses two words. (Do not use address En (n = 2 (X - 1) + 1, X = station number).) Inverter FR-A8NC Remote device station...

  • Page 69: Remote Registers Pr.544 = "100" (master Station To Inverter (fr-a8nc))

    Buffer memory 2.4.3 Remote registers Pr.544 = "100" (master station to inverter (FR-A8NC)) • Data to be sent to remote registers (RWw) of the remote device station are stored. • Each station uses four words. Inverter FR-A8NC Remote device station Master station (Station No.

  • Page 70: Remote Registers Pr.544 = "100" (inverter (fr-a8nc) To Master Station)

    Buffer memory 2.4.4 Remote registers Pr.544 = "100" (inverter (FR- A8NC) to master station) • Data sent from the remote registers (RWr) of the remote device station are stored. • Each station uses four words. Inverter FR-A8NC Remote device station Master station (Station No.

  • Page 71

    MEMO...

  • Page 72: Sequence Program

    Sequence program Overview ......................RUN/STOP operation ..................Program configuration ................... Programming language.................. Operation processing method of the PLC function........I/O processing method ................... Scan time ......................Values that can be used in sequence programs.......... Explanation of devices ................... 3.10 Counter C......................3.11 Data register D ....................

  • Page 73: Overview

    Overview Overview 3.1.1 Overview of operation The following description is of the overview of processing performed after the inverter is turned ON and through to execution of a sequence program. PLC function processing can roughly be classified into the following three types. Initial processing Initial processing is pre-processing to execute sequence operations and is performed only once when the inverter is turned ON or reset.

  • Page 74

    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 Sequence program...

  • Page 75: Run/stop Operation

    RUN/STOP operation RUN/STOP operation The PLC function has two operating statuses, a RUN state and a STOP state. The following description is of operation processing of the PLC function in each state. RUN state operation In the RUN state, the PLC function operates a sequence program in the sequence of step 0END (FEND) instructionstep 0 repeatedly when the SQ signal is turned ON.

  • Page 76: Programming Language

    Programming language Programming language Programming the PLC function can be performed through two methods. One uses figures and the other uses dedicated instructions. • Programming with figures is performed by using the relay symbolic language. (Programming in FR Configurator2 (Developer) is performed in "ladder mode.") •...

  • Page 77

    Programming language Sequence program operation method The sequence program is operated repeatedly from the ladder block at step 0 through the END instruction. A ladder block is operated from the left vertical rail to the right vertical rail and from top down. Operation from left to right Beginning of one ladder block...

  • Page 78: Function Block (fb)

    Programming language 3.4.2 Function block (FB) A function block (FB) is a repeatedly used ladder blocks that is treated as a component so that it can also be used in other sequence programs. <Without FBs> <With FBs> Project A Project A Program 1 Program 1 Program 2...

  • Page 79: Operation Processing Method Of The Plc Function

    Operation processing method of the PLC function Operation processing method of the PLC function The PLC function uses the repetitive operation method of stored programs. Stored program method • The stored program method stores a sequence program to be operated in the internal memory in advance. •...

  • Page 80: I/o Processing Method

    I/O processing method I/O processing method The control method is a refresh method. 3.6.1 Refresh method The refresh method stores changes in the control input terminals to the CPU input data memory in batch before every scan is executed and uses the data stored in this input data memory for operation execution. Program operation results of the output (Y) are output to the output data memory every time, and contents stored in the output data memory are output in batch from the control output terminals after the END instruction is executed.

  • Page 81: Response Delay In Refresh Mode

    I/O processing method 3.6.2 Response delay in refresh mode The following description is about the output delay for the varied inputs. As shown in the figures below, change in the output lags behind that in the input by up to two scans. Ladder example In this ladder, output Y1E turns ON when input X5 turns ON.

  • Page 82: Scan Time

    Scan time Scan time Scan time Scan time is the time period from operation execution of a sequence program from step 0 until executing the next step 0. The scan time is not constant in every scan but differs according to whether instructions used are executed or not. Scan time Sequence program END processing...

  • Page 83: Values That Can Be Used In Sequence Programs

    Values that can be used in sequence programs Values that can be used in sequence programs For the PLC function, data such as values and alphabetical characters are represented in two statuses, 0 (OFF) and 1 (ON). Data represented with 0 and 1 is called BIN (binary). The PLC function can also use HEX (hexadecimal), which represents four bits of BIN data together.

  • Page 84: Bin (binary)

    Values that can be used in sequence programs 3.8.1 BIN (binary) Binary BIN represents a value with 0 (OFF) and 1 (ON). In decimal notation, when a value increases from 0 to 9, a carry occurs and the next value becomes 10. In BIN (binary) notation, a carry is generated after 0 and 1, and the next value becomes 10 (2 in decimal notation).

  • Page 85: Hex (hexadecimal)

    Values that can be used in sequence programs 3.8.2 HEX (hexadecimal) HEX HEX represents four bits of binary data with one digit. BIN uses 4 bits to represent the 16 values from 0 to 15. HEX uses the letter A to represent the bit next to 9 (10) and B to represent 11, and then a carry occurs after F (15). For the numeric representations of BIN, HEX, and DEC, refer to page Numeric representation in HEX...

  • Page 86: Explanation Of Devices

    Explanation of devices Explanation of devices 3.9.1 Device list The following list shows device names and ranges that can be used for the PLC function. Number of Classification Category Device name Range of use points Input (X) 64 points X0 to X3F <12 points installed> Output (Y) 64 points Y0 to Y3F <12 points installed>...

  • Page 87: I/o X And Y

    Explanation of devices 3.9.2 I/O X and Y The input and output are devices that are used for communication between the inverter and external devices. The input is given ON/OFF information externally to the control input terminals. Information is used as contacts (NO contact and NC contact) and source data of basic instructions in programs.

  • Page 88: Internal Relay M

    Explanation of devices Output Y • The output performs output of program control results to external devices (signal lights, digital Human Machine Interfaces (HMI), electromagnetic switches (such as contactors and solenoids)). • Output information can be output through a single NO contact or an equivalent device. •...

  • Page 89: Timer T

    Explanation of devices 3.9.4 Timer T The PLC function uses up-timing timers. The up-timing timer starts measuring a present value when the timer's coil turns ON, and then the timer's contact turns ON when the present value reaches a setting value. 3.9.5 100 ms timer, 10 ms timer, and 100 ms retentive timer...

  • Page 90: Processing And Accuracy Of Timers

    Explanation of devices 100 ms retentive timer • The 100 ms retentive timer is a timer that measures the time period during which its coil is ON. It starts measuring a present value when its coil turns ON and retains the present value and its contact ON/OFF status even when the coil turns OFF.

  • Page 91

    Explanation of devices Accuracy The value obtained by the END instruction is added to the current value when the OUT T instruction is executed. The current value is not updated while the timer coil is off even if the OUT T instruction is executed. Timer limit setting=10ms, Setting value of T0=8 (10ms 8=80ms), Scan time=25ms processing processing...

  • Page 92: Counter C

    Counter C 3.10 Counter C The PLC function uses up-timing counters. The up-timing counter turns its contact ON when the count value reaches a setting value. Count processing • The counter's coil turns on/off at execution of the OUT C instruction, and then the counter's present value is updated and its contact turns ON after the END instruction is executed.

  • Page 93: Count Process In Refresh Mode

    Counter C 3.10.1 Count process in refresh mode The counter counts at the rise of the counter's input conditions stored at input refresh. Ladder example When OFF to ON of X5 is counted twice, C3 contact turns ON. Counting method Does not count since X5 remains ON.

  • Page 94: Data Register D

    Data register D 3.11 Data register D • Data registers are memories that can store numerical data (from -32768 to 32767 or from H0000 to HFFFF) within the PLC function. Each data register consists of 16 bits; therefore, data can be read and written in 16-bit increments. 16 bits Data register No.

  • Page 95: Special Relays And Special Registers

    Special relays and special registers 3.12 Special relays and special registers Special relays and special registers are internal relays and data registers, respectively, whose applications are already determined in the PLC function. The following are the main applications of special relays and special registers. Sequence operation check The following special relays and special registers can be used for checking sequence program operations.

  • Page 96: Function List

    Function list 3.13 Function list Function Description This function executes remote RUN/STOP from an external source when the SQ signal is ON Remote RUN/STOP (PLC function RUN state (P.RUN is ON)). Watchdog timer variable This is a PLC function internal timer for detecting errors in the hardware or programs. Its (10 to 2000 ms) setting value can be changed.

  • Page 97: Run/stop Method Of Plc Function From An External Source (remote Run/stop)

    RUN/STOP method of PLC function from an external source (remote RUN/STOP) 3.14 RUN/STOP method of PLC function from an external source (remote RUN/STOP) The PLC function RUN/STOP is executed by ON/OFF of the SQ signal. Remote RUN/STOP is performed by RUN/STOP of the PLC function from an external source when the SQ signal remains in the ON state (RUN state).

  • Page 98

    RUN/STOP method of PLC function from an external source (remote RUN/STOP) • Using FR Configurator2 (Developer) RUN/STOP can be performed by operating remote RUN/STOP from FR Configurator2 (Developer). For example, this can be used to STOP the inverter in order to rewrite the sequence program when it is installed in an out of reach location.

  • Page 99: Watchdog Timer (watchdog Error Supervision Timer)

    Watchdog timer (watchdog error supervision timer) 3.15 Watchdog timer (watchdog error supervision timer) Watchdog timer The watchdog timer is a PLC function internal timer for detecting errors in the hardware or sequence program. Use FR Configurator2 (Developer). Select the [PC parameter] window, [PC RAS setting] tab, and set the watchdog timer. PLC function Minimum setting Name...

  • Page 100: Self-diagnostic Function

    Self-diagnostic function 3.16 Self-diagnostic function The self-diagnostic function diagnoses the presence of an error within the PLC function itself. Self-diagnostic timing The self-diagnostic is executed at power-on, at reset, when each instruction is executed and when the END instruction is executed.

  • Page 101: Registering File Password

    Registering file password 3.17 Registering file password This function sets write password and read password for each file stored in the inverter so that files are protected against tampering and theft by unauthorized persons. To set up a file password, select [Online] of FR Configurator2 (Developer), [Password/key word], and then [Registration/change].

  • Page 102: Output (y) Status Settings When Stop Status → Run Status

    Output (Y) status settings when STOP status → RUN status 3.18 Output (Y) status settings when STOP status → RUN status When changing from a state such as the RUN state to the STOP state, the RUN state output (Y) is stored in the PLC function. When changing from the STOP state to the RUN state, the PLC function parameter settings can be configured to either re- output the output (Y) or to output after operation execution.

  • Page 103: Structure Of Instructions

    Structure of instructions 3.19 Structure of instructions Most of the instructions can be divided between the instruction section and device, and the applications are as follows. • Instruction section Indicates the functions of the instruction. • Device Indicates the data used by the instruction. The structure of instructions based on a combination of the instruction section and device can be broadly divided into the following categories.

  • Page 104: Bit Device Processing Method

    Bit device processing method 3.20 Bit device processing method Processing methods available for when a bit device (X, Y, M) is specified are 1-bit processing, and 16-bit and 32-bit processing which are accompanied by digit specification. 3.20.1 1-bit processing When sequence instructions are used, the device that is the operation processing target is 1 bit (1 point) of the bit device, and multiple bits cannot be specified.

  • Page 105

    Bit device processing method • When there is a digit specification on the destination (D) side, the number of points from the digit specification is applied to the destination side. Ladder example Process When source (S) data is values Destination (D) side Remain unchanged.

  • Page 106

    Bit device processing method • When there is a digit specification on the destination (D) side, the number of points from the digit specification is applied to the destination side. Ladder example Process When source (S) data is values H78123456 X010 K5M0 DMOV...

  • Page 107: Handling Of Numerical Values

    Handling of numerical values 3.21 Handling of numerical values The PLC function has an instruction for handling values indicated in 16 bits and 32 bits. The most significant bit of the 16 bits and 32 bits is used to judge positive or negative. Therefore, the values that can be handled are as follows.

  • Page 108: Operation Error

    Operation error 3.22 Operation error An operation error occurs in the basic instruction in the following cases. When an error listed in the description of each instruction occurs. POINT POINT • Note that an operation error does not occur when the device specified range exceeds the corresponding device range, and data is written to devices other than the specified device.

  • Page 109: Sequence Instructions List

    Sequence instructions list 3.23 Sequence instructions list 3.23.1 How to view the instruction list table Instruction Process Execution Number of Classification Symbol symbol description condition steps Transfer (S)(D) MOVP MOVP       1): Instructions are classified according to application. 2): Indicates the instruction symbol used in the program.

  • Page 110

    Sequence instructions list 4): Indicates the process description of each instruction. (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): Details of the execution conditions for each instruction are as follows.

  • Page 111: Sequence Instructions List

    Sequence instructions list 3.23.2 Sequence instructions list Instruction Execution Refer Classification Symbol Process description symbol Condition to page Logical operation start (NO contact operation start) Logical NOT operation start (NC contact operation start) Logical AND (NO contact series connection) Contact Logical AND NOT (NC contact series connection) Logical OR...

  • Page 112

    Sequence instructions list Instruction Execution Refer Classification Symbol Process description symbol Condition to page Non-processing. For program erasure or spacing. Non- Non-processing. NOPLF NOPLF processing New line instruction for printer output. Ignored (Subsequent programs will be PAGE PAGE controlled from step 0 of page n) Sequence program...

  • Page 113: Basic Instructions

    Sequence instructions list 3.23.3 Basic instructions Instruction Execution Refer Classification Symbol Process description symbol condition to page When (S1) = (S2), conductive. AND= When (S1)  (S2), non-conductive. LD<> < > When (S1)  (S2), conductive. AND<> < > When (S1) = (S2), non-conductive. OR<>...

  • Page 114

    Sequence instructions list Instruction Execution Refer Classification Symbol Process description symbol condition to page LDD<> LDD<> When (S1+1, S1)  (S2+1, S2), conductive. ANDD<> ANDD<> When (S1+1, S1) = (S2+1, S2), non-conductive. ORD<> ORD<> LDD> LDD> When (S1+1, S1) > (S2+1, S2), conductive.

  • Page 115

    Sequence instructions list Instruction Execution Refer Classification Symbol Process description symbol condition to page (D+1, D) + (S+1, S) (D+1, D) (S1+1, S1) + (S2+1, S2) (D+1, D) 32-bit addition/ subtraction (D+1, D) - (S+1, S) (D+1, D) (S1+1, S1) - (S2+1, S2) (D+1, D) (S1) ...

  • Page 116

    Sequence instructions list Instruction Execution Refer Classification Symbol Process description symbol condition to page 16-bit (S)(D) transfer MOVP MOVP DMOV DMOV 32-bit (S+1, S)(D+1, D) transfer DMOVP DMOVP BIN 16-bit 0 - (D)(D) complement NEGP NEGP DNEG BIN 32-bit DNEG 0 - (D+1, D)(D+1, D) complement DNEGP...

  • Page 117: Application Instructions

    Sequence instructions list 3.23.4 Application instructions Instruction Execution Refer Classification Symbol Process description symbol condition to page WAND WAND (D) AND (S)(D) WANDP WANDP BIN 16-bit logical AND WAND WAND (S1) AND (S2)(D) WANDP WANDP DAND DAND (D+1, D) AND (S+1, S)(D+1, D) DANDP DANDP BIN 32-bit...

  • Page 118: Display Instruction

    Sequence instructions list Instruction Execution Refer Classification Symbol Process description symbol condition to page WXNR WXNR (D) XOR (S)(D) WXNRP BIN 16-bit WXNRP exclusive WXNR WXNR (S1) XOR (S2)(D) WXNRP WXNRP DXNR DXNR (D+1, D) XOR (S+1, S) (D+1, D) DXNRP BIN 32-bit DXNRP...

  • Page 119: How To View Instructions

    How to view instructions 3.24 How to view instructions The subsequent descriptions shall be in the following format. Sequence instructions 3.25.4 Output instruction: device set, reset ... SET, RST Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)

  • Page 120: Sequence Instructions

    Sequence instructions 3.25 Sequence instructions Sequence instructions are used in relay control circuits, etc. 3.25.1 Contact instruction: operation start, series connection, parallel connection ... LD, LDI, AND, ANI, OR, ORI Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification...

  • Page 121

    Sequence instructions Execution condition The instructions explained in this section are executed every scan irrespective of the device ON/OFF status or the operation result directly prior to the execution. Program example Coding Coding Coding Sequence program...

  • Page 122: Association Instruction: Ladder Block Series Connection, Parallel Connection

    Sequence instructions 3.25.2 Association instruction: ladder block series connection, parallel connection ... ANB, ORB Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0) Block A Block B Block A Block B Use OR or ORI to connect a contact in parallel.

  • Page 123

    Sequence instructions Program example The following two types of program coding are available for continuous series connection of ladder blocks. However, the coding example 1 should be applied. Coding example 1 Coding example 2 The following two types of program coding are available for continuous parallel connection of ladder blocks. However, the coding example 1 should be applied.

  • Page 124: Association Instruction: Operation Results, Push, Read, Pop

    Sequence instructions 3.25.3 Association instruction: operation results, push, read, pop ... MPS, MRD, Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0) MPS, MRD and MPP do not appear in ladder display. Function • The operation result (ON/OFF) directly prior to the MPS instruction is stored. •...

  • Page 125

    Sequence instructions POINT POINT • The ladder is as shown below when MPS, MRD and MPP are used and when they are not used. Ladder when MPS, MRD and MPP are used Ladder when MPS, MRD and MPP are not used •...

  • Page 126

    Sequence instructions Program example • Program using MPS, MRD and MPP Coding Sequence program...

  • Page 127: Output Instruction: Bit Device, Timer, Counter

    Sequence instructions 3.25.4 Output instruction: bit device, timer, counter ... Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0) Bit device   Device  Timer Setting   value Device  Counter Setting  ...

  • Page 128

    Sequence instructions OUT(T) • When the operation result up to the OUT instruction is ON, the timer coil turns ON and counts up the value up to the setting value. When the coil's timer reaches the setting value (counted value  setting value), the contacts enter the following states: NO contact Conduction NC contact Non-conduction...

  • Page 129: Output Instruction: Device Set, Reset

    Sequence instructions 3.25.5 Output instruction: device set, reset ... SET, RST Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)        SET input Setting data Device number to set (ON) RST input Device number to reset Function...

  • Page 130

    Sequence instructions Execution condition The SET and RST instructions are executed for each scan. NOTE • The number of steps is three when the following devices are used. SET instruction ... Special relay (M) RST instruction ... Special relay (M), all word devices Program example •...

  • Page 131: Output Instruction: Rising, Falling Differential Output

    Sequence instructions 3.25.6 Output instruction: rising, falling differential output ... PLS, PLF Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)   PLS command Setting data Device number to convert into pulse form PLF command Function •...

  • Page 132

    Sequence instructions Program example Program that executes the PLS instruction when X9 is turned ON. Coding 1 scan Program that executes the PLF instruction when X9 is turned OFF. Coding 1 scan Sequence program...

  • Page 133: Shift Instruction: Bit Device Shift

    Sequence instructions 3.25.7 Shift instruction: bit device shift ... SFT, SFTP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)   SFT commands Setting data Device number to shift Function • The ON/OFF status is shifted to the device immediately prior to the device specified with , and the prior device is set to OFF.

  • Page 134

    Sequence instructions Program example • Program that shifts Y7 to YB 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 Sequence program...

  • Page 135: Master Control Instruction: Master Control Set, Reset

    Sequence instructions 3.25.8 Master control instruction: master control set, reset ... MC, MCR Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)    Setting data MC ON/OFF command Nesting (N0 to 14) Device number to be Device turned ON Nesting (N0 to 14)

  • Page 136

    Sequence instructions • The master control release instruction that indicates the end of the master control range. • Do not add a contact instruction to the front of the MCR instruction. Program example • The master control instruction can be used as a nesting structure. Each master control area is separated by nesting (N). N0 to N14 can be used for nesting.

  • Page 137

    Sequence instructions Take note of the following points when using a nesting structure. • A maximum of 15 nests (N0 to 14) can be used. When applying nesting, MC uses numbers from the lower nesting (N) numbers upwards, whereas MCR uses numbers from the higher numbers downwards. If the order is reversed, the structure is not a nesting structure and the PLC function cannot operate normally.

  • Page 138: Termination Instruction: Termination Of Main Program

    Sequence instructions 3.25.9 Termination instruction: termination of main program ... FEND Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0) FEND Function • Execution of the FEND instruction will cause the CPU module to terminate the program it was executing. •...

  • Page 139: Other Instructions: Non-processing

    Sequence instructions 3.25.11 Other instructions: non-processing ... NOP, NOPLF, PAGE n Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)  NOP does not appear in ladder display. NOPLF PAGE Function Non-processing instructions do not have an effect on previously executed operations. NOP are used in the following situations.

  • Page 140

    Sequence instructions Program example • Contact short-circuit (AND, ANI) Coding Before change Replaced by NOP. After change Coding • Contact short-circuit (LD, LDI) Caution is required because the ladder completely changes if LD or LDI are replaced by NOP. Before change Coding Replaced by NOP.

  • Page 141

    Sequence instructions • Printing the ladder will result in the following: NOPLF instruction, NOPLF inserted as a delimiter of ladder blocks, causes print out page to be changed forcibly. • Printing an instruction list with the NOPLF instruction will result in the following: NOPLF Changes print output page after printing NOPLF.

  • Page 142: Basic Instruction (16-bit)

    Basic instruction (16-bit) 3.26 Basic instruction (16-bit) The basic instruction (16-bit) can handle 16 bits of numeric data. 3.26.1 Comparison operation instruction • Comparison operation instructions execute size comparisons (=, >, < etc.) of two data, and instructs a contact to turn ON when the conditions are met.

  • Page 143: Comparison Operation Instruction: 16-bit Data Comparison

    Basic instruction (16-bit) 3.26.2 Comparison operation instruction: 16-bit data comparison ... =, <>, >, <=, <, >= Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)         K1 to K4 ...

  • Page 144

    Basic instruction (16-bit) Program example Program that compares the X0 to F data with D3 data. Coding <> Program that compares the BCD value 100 with D3 data. Coding > Program that compares the BIN value 100 with D3 data. Coding <= Program that compares the D0 with D3 data.

  • Page 145: Arithmetic Operation Instruction

    Basic instruction (16-bit) 3.26.3 Arithmetic operation instruction An arithmetic operation instruction instructs the addition, subtraction, multiplication or division for two BIN data, or operation of increment or decrement. BIN arithmetic operation (binary) • If the operation result of an addition instruction exceeds 32767, the value is negative. •...

  • Page 146: Arithmetic Operation Instruction: Bin 16-bit Addition/subtraction

    Basic instruction (16-bit) 3.26.4 Arithmetic operation instruction: BIN 16-bit addition/subtraction ... +, +P, -, -P Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)            ...

  • Page 147

    Basic instruction (16-bit) Function • Executes addition of the BIN data specified with and BIN data specified with , and stores the addition results in the device specified with • Executes addition of the BIN data specified with and BIN data specified with , and stores it in the device specified with S1 S2...

  • Page 148

    Basic instruction (16-bit) Execution condition Addition/subtraction instruction Addition/subtraction command Executed every Executed every scan. scan. Executed only once. Executed only once. Program example Program that adds the content of D3 to the content of D0 when X5 turns ON, and outputs the results to Y38 to 3F. Coding Sequence program...

  • Page 149: Arithmetic Operation Instruction: Bin 16-bit Multiplication/division

    Basic instruction (16-bit) 3.26.5 Arithmetic operation instruction: BIN 16-bit multiplication/division ... *, *P, /, /P Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)            ...

  • Page 150

    Basic instruction (16-bit) Function • Executes multiplication of the BIN data specified with and BIN data specified with , and stores the multiplication results in the device specified with • When is a bit device, specify from the lower bits. Example K1: Lower 4 bits (b0 to 3) K4: Lower 16 bits (b0 to 15)

  • Page 151

    Basic instruction (16-bit) Execution condition The execution conditions for multiplication/division instructions are as follows. Multiplication/division command Executed every Executed every scan. scan. Executed only once. Executed only once. Operation error An operation error occurs in the following cases, and the error flag turns on. •...

  • Page 152: Arithmetic Operation Instruction: Bin 16-bit Data Increment/decrement

    Basic instruction (16-bit) 3.26.6 Arithmetic operation instruction: BIN 16-bit data increment/decrement ... INC, INCP, DEC, DECP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0) INC, INCP,       K1 to K4 ...

  • Page 153: Data Transfer Instruction

    Basic instruction (16-bit) 3.26.7 Data transfer instruction The data transfer instruction is an instruction that executes the transfer of data. Data transferred by the data transfer instruction is retained until new data is transferred. 3.26.8 Data transfer instruction: 16-bit data transfer ... MOV, MOVP Applicable device Error flag Digit...

  • Page 154: Data Conversion Instruction: 2's Complements Of Bin 16-bit Data

    Basic instruction (16-bit) 3.26.9 Data conversion instruction: 2’s complements of BIN 16-bit data ... NEG, NEGP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)        K1 to K4 ...

  • Page 155

    Basic instruction (16-bit) Program example • Program that calculates D10 to D20 when XA is turned ON, and calculates the absolute value when this result is negative. Sequence program...

  • Page 156: Data Conversion Instructions: Bin 16-bit Data Bcd Conversions

    Basic instruction (16-bit) 3.26.10 Data conversion instructions: BIN 16-bit data BCD conversions ... BCD, BCDP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)         K1 to K4 ...

  • Page 157: Data Conversion Instructions: Bin 16-bit Data Bin Conversions

    Basic instruction (16-bit) 3.26.11 Data conversion instructions: BIN 16-bit data BIN conversions ... BIN, BINP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)         K1 to K4 ...

  • Page 158: Basic Instruction (32-bit)

    Basic instruction (32-bit) 3.27 Basic instruction (32-bit) The basic instruction (32-bit) is an instruction that can handle numeric data that is expressed in 32 bits. 3.27.1 Comparison operation instruction • Comparison operation instructions execute size comparisons (D=, D>, D< etc.) of two data, and instructs the contact to turn ON when the conditions are met.

  • Page 159: Comparison Operation Instruction: 32-bit Data Comparison

    Basic instruction (32-bit) 3.27.2 Comparison operation instruction: 32-bit data comparison ... D=, D<>, D>, D<=, D<, D>= Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)         K1 to K8 ...

  • Page 160

    Basic instruction (32-bit) Program example Program that compares the M0 to 31 data with D3 and D4 data. Coding LDD= K8M0 D<> Program that compares the BCD value 18000 with D3 and D4 data. Coding ANDD<> H00018000 D<> 00018000 D> Program that compares the BIN value -80000 with D3 and D4 data.

  • Page 161: Arithmetic Operation Instruction

    Basic instruction (32-bit) 3.27.3 Arithmetic operation instruction An arithmetic operation instruction instructs the addition, subtraction, multiplication or division for two BIN data, or operation of increment or decrement. BIN arithmetic operation (binary) • If the operation result of an addition instruction exceeds 2147483647, the value is negative. •...

  • Page 162

    Basic instruction (32-bit) Function • Executes addition of the BIN data specified with and BIN data specified with , and stores the addition results in the device specified with b16 b15 b16 b15 b16 b15 567890 (BIN) 123456 (BIN) 691346 (BIN) •...

  • Page 163

    Basic instruction (32-bit) Execution condition Addition/subtraction instruction Addition/subtraction command Executed every Executed every scan. scan. Executed only once. Executed only once. Program example Program that adds the X10 to X2B 28-bit data to the D9 and D10 data when X0 turns ON, and outputs the results to M0 to M27.

  • Page 164: Arithmetic Operation Instruction: Bin 32-bit Multiplication/division

    Basic instruction (32-bit) 3.27.5 Arithmetic operation instruction: BIN 32-bit multiplication/division ... D*, D*P, D/, D/ Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)            ...

  • Page 165

    Basic instruction (32-bit) • Executes division of the BIN data specified with and BIN data specified with , and stores the results in the device specified with Quotient Remainder b31 b16 b31 b16 b31 b16 567890 (BIN) 123456 (BIN) 4 (BIN) 74066 (BIN) •...

  • Page 166

    Basic instruction (32-bit) Operation error An operation error occurs in the following cases, and the error flag turns ON. • When A1 or V is specified in , or A0, A1, Z or V are specified in • When the divisor is 0.

  • Page 167: Arithmetic Operation Instruction: Bin 32-bit Data Increment/decrement

    Basic instruction (32-bit) 3.27.6 Arithmetic operation instruction: BIN 32-bit data increment/decrement ... DINC, DINCP, DDEC, DDECP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0) DINC, DINCP,       K1 to K4 ...

  • Page 168: Data Transfer Instruction

    Basic instruction (32-bit) 3.27.7 Data transfer instruction The data transfer instruction is an instruction that executes the transfer of data. Data transferred by the data transfer instruction is retained until new data is transferred. 3.27.8 Data transfer instruction: 32-bit data transfer ... DMOV, DMOVP Applicable device Error flag Digit...

  • Page 169

    Basic instruction (32-bit) Program example DMOV • Program that stores the input D2 to D3 data in D0 and D1. Coding DMOV DMOVP D2 • Program that stores M0 to M31 data in D0 and D1. Coding DMOV DMOVP K8M0 D0 Sequence program...

  • Page 170: Data Conversion Instruction 2's Complements Of Bin 32-bit Data ... Dneg, Dnegp

    Basic instruction (32-bit) 3.27.9 Data conversion instruction: 2's complements of BIN 32-bit data ... DNEG, DNEGP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0) DNEG(P)        K1 to K8 ...

  • Page 171: Data Conversion Instructions Bin 32-bit Data Bcd Conversions ... Dbcd, Dbcdp

    Basic instruction (32-bit) 3.27.10 Data conversion instructions: BIN 32-bit data BCD conversions ... DBCD, DBCDP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)         DBCD K1 to K8 ...

  • Page 172: Data Conversion Instructions Bin 32-bit Data Bin Conversions ... Dbin, Dbinp

    Basic instruction (32-bit) 3.27.11 Data conversion instructions: BIN 32-bit data BIN conversions ... DBIN, DBINP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)         DBIN K1 to K8 ...

  • Page 173: Application Instructions (16-bit)

    Application instructions (16-bit) 3.28 Application instructions (16-bit) Application instructions (16-bit) are used when special processing is required. 3.28.1 Logical operation instructions • Logical operation instructions are instructions that execute logical operations such as logical OR or logical AND. • There are 10 types of logical operation instruction as shown below. Instruction Instruction Instruction...

  • Page 174: Logical Operation Instruction Bin 16-bit Logical And ... Wand, Wandp

    Application instructions (16-bit) 3.28.2 Logical operation instruction: BIN 16-bit logical AND ... WAND, WANDP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)             ...

  • Page 175

    Application instructions (16-bit) Function WAND • Logical AND is executed for each bit of the 16-bit data of the device specified with and 16-bit data of the device specified with , and the results are stored in the device specified with 16 bits Before execution...

  • Page 176

    Application instructions (16-bit) • Program that executes logical AND for X10 to 1B data and D33 data when XA turns ON, and outputs the results to Y0 to B. ANDs X10-1B data and D33 data and stores result to D33. Outputs D33 data to Y0-F.

  • Page 177: Logical Operation Instruction Bin 16-bit Logical Or ... Wor, Worp

    Application instructions (16-bit) 3.28.3 Logical operation instruction: BIN 16-bit logical OR ... WOR, WORP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)             ...

  • Page 178

    Application instructions (16-bit) Execution condition • The execution conditions for logical OR instructions are as follows. Operation command Executed every Executed every scan. scan. WORP Executed only once. Executed only once. Program example • Program that executes logical OR for D10 and D20 data when XA turns ON, and stores the results in D10. Coding •...

  • Page 179: Logical Operation Instruction Bin 16-bit Data Exclusive Or ... Wxor, Wxorp

    Application instructions (16-bit) 3.28.4 Logical operation instruction: BIN 16-bit data exclusive OR ... WXOR, WXORP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)            ...

  • Page 180

    Application instructions (16-bit) Execution condition The execution conditions for exclusive OR instructions are as follows. Operation command Executed every Executed every WXOR scan. scan. WXORP Executed only once. Executed only once. Program example WXOR • Program that executes exclusive OR for D10 and D20 data when XA turns ON, and stores the results in D10. •...

  • Page 181: Logical Operation Instruction Bin 16-bit Data Exclusive Nor ... Wxnr, Wxnrp

    Application instructions (16-bit) 3.28.5 Logical operation instruction: BIN 16-bit data exclusive NOR ... WXNR, WXNRP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)            ...

  • Page 182

    Application instructions (16-bit) Execution condition The execution conditions for exclusive NOR instructions are as follows. Operation command Executed every WXNR Executed every scan. scan. WXNRP Executed only once. Executed only once. Program example WXNR • Program that executes exclusive NOR for the 16-bit data of X30 to 3F and D99 data when X0 turns ON, and stores the results in D7.

  • Page 183: Application Instructions (32-bit)

    Application instructions (32-bit) 3.29 Application instructions (32-bit) Application instructions (32-bit) are used when special processing is required. 3.29.1 Logical operation instructions • Logical operation instructions are instructions that execute logical operations such as logical OR or logical AND. • There are 10 types of logical operation instruction as shown below. Instruction Instruction Instruction...

  • Page 184: Logical Operation Instruction Bin 32-bit Logical And ... Dand, Dandp

    Application instructions (32-bit) 3.29.2 Logical operation instruction: BIN 32-bit logical AND ... DAND, DANDP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)             ...

  • Page 185

    Application instructions (32-bit) Function DAND • Logical AND is executed for each bit of the 32-bit data of the device specified with and 32-bit data of the device specified with , and the results are stored in the device specified with DAND •...

  • Page 186

    Application instructions (32-bit) Program example DAND • The following program performs a logical product operation on the data at D99 and D100, and the 24-bit data between X20 and X37 when X8 is ON, and stores the results at D99 and D100. Coding b30b29 b28 b27 b26 b25b24 b23 b22 b3 b2 b1 b0...

  • Page 187: Logical Operation Instruction Bin 32-bit Logical Or ... Dor, Dorp

    Application instructions (32-bit) 3.29.3 Logical operation instruction: BIN 32-bit logical OR ... DOR, DORP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)             ...

  • Page 188

    Application instructions (32-bit) Function • Logical OR is executed for each bit of the 32-bit data of the device specified with and 32-bit data of the device specified with , and the results are stored in the device specified with •...

  • Page 189

    Application instructions (32-bit) Program example • The following program performs a logical sum operation on the 32-bit data from X0 to X1F, and on the hexadecimal value FF00FF00H when XB is turned ON, and stores the results at D66 and D67. Coding FF00FF00 D67,D66...

  • Page 190: Logical Operation Instruction Bin 32-bit Data Exclusive Or ... Dxor, Dxorp

    Application instructions (32-bit) 3.29.4 Logical operation instruction: BIN 32-bit data exclusive OR ... DXOR, DXORP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)            ...

  • Page 191

    Application instructions (32-bit) Function DXOR • Exclusive OR is executed for each bit of the 32-bit data of the device specified with and 32-bit data of the device specified with , and the results are stored in the device specified with DXOR D + 1 •...

  • Page 192

    Application instructions (32-bit) Program example DXOR • The following program conducts an exclusive OR operation on the data at D20 and D21, and the data at D30 and D31 when X10 is turned ON, and stores the results at D40 and D41. Coding D21,D20 DXOR...

  • Page 193: Logical Operation Instruction Bin 32-bit Data Exclusive Nor ... Dxnr, Dxnrp

    Application instructions (32-bit) 3.29.5 Logical operation instruction: BIN 32-bit data exclusive NOR ... DXNR, DXNRP Applicable device Error flag Word (16-bit) Digit Bit device Constant Level device specification (SM0)            ...

  • Page 194

    Application instructions (32-bit) • Exclusive NOR is executed for the 32-bit data of the device specified with and 32-bit data of the device specified with , and the results are stored in the device specified with DXNR • Bits of the bit device higher than the specified digit are operated as 0. Execution condition The execution conditions for exclusive NOR instructions are as follows.

  • Page 195: Display Instruction

    Display instruction 3.30 Display instruction 3.30.1 Character string data transfer ... $MOV, $MOVP Applicable device Error flag Digit Bit device Word (16-bit) device Constant Level specification (SM0)     Setting data Command $MOV Transferred character string (Maximum character string: 32 Command characters (up to 16 characters $MOVP...

  • Page 196: Character String Output ... G. Prr, Gp.prr, Umsg

    Display instruction 3.30.2 Character string output ... G. PRR, GP.PRR, UMSG G.PRR, GP.PRR Applicable device Error flag Others Digit Bit device Word (16-bit) device Constant Level specification (SM0)          Setting data Command G.PRR Not used, but U is specified Character string that is...

  • Page 197

    Display instruction  Setting data: For user monitor name Set the monitor name as shown below when SD1216 to 1218 are monitored by the LCD operation panel (FR-LU08) or the parameter unit (FR-PU07). Upper 8 bits Lower 8 bits Set the corresponding monitor number to the upper 8 bits, and 01 to the lower 8 bits. +0 **** Monitor name: Character start 2nd character 1st character...

  • Page 198

    Display instruction  Setting data: For user parameter name Set the parameter name as shown below to display the read user parameters Pr.1150 to Pr.1159 on the LCD operation panel (FR-LU08). Upper 8 bits Lower 8 bits Set the corresponding parameter number to the upper 8 bits, and 03 to the lower 8 bits. **** Parameter name: Character start 2nd character 1st character...

  • Page 199

    Display instruction  Setting data: For unit names This function sets up the increment for the user monitors SD1216 to SD1218 or the user parameters Pr.1150 to Pr.1159 using the LCD operation panel (FR-LU08) or the parameter unit (FR-PU07). Upper 8 bits Lower 8 bits ...

  • Page 200: Error Code List

    Error code list How to read error codes................. Error code list...

  • Page 201: How To Read Error Codes

    How to read error codes If an error occurs when PLC function is RUN or during RUN, an error indication is generated by the self-diagnostic function, and an error code and error step are stored in the special register. The error description and corrective action are as follows: How to read error codes When an error occurs, the error code can be read using a peripheral device.

  • Page 202

    How to read error codes Error code Error name Error description possible cause Corrective action (SD0) • The program scan time exceeded • Read the error individual information with the the watchdog timer value set in the programming tool, check the values (time) PLC RAS setting of the PLC function and shorten the scan time.

  • Page 203

    MEMO...

  • Page 204: Appendix

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

  • Page 205

    Instruction processing time Appendix 1 Instruction processing time Basic instructions  Sequence instructions  Comparison operation instructions Condition Processing Processing Classification Instruction (device) time (μs) time (μs) Condition Classification Instruction Other (device) Subset than  subset S1 S2 Contact LD<> S1 S2 LD<...

  • Page 206: Data Transfer Instructions

    Instruction processing time  Data transfer instructions  Arithmetic operation instructions Processing Processing time (μs) time (μs) Condition Condition Classification Instruction Other Classification Instruction Other (device) Subset (device) Subset than than   subset subset 13.5 16-bit 13.5 transfer MOVP 14.2 11.0 14.3...

  • Page 207

    Instruction processing time Application instructions  Logical operation instructions  Instructions regarding the message display on PU Processing time (μs) Condition Processing Condition Classification Instruction Classification Instruction Other (device) time (μs) (device) Subset than Character $MOV 12.6  subset string data $MOVP 13.3 13.6...

  • Page 208

    MEMO...

  • Page 209

    REVISIONS *The manual number is given on the bottom left of the back cover. Print date *Manual number Revision Aug. 2013 IB(NA)-0600492ENG-A First edition Modification • USB communication and RS-485 communication (RS-485 terminals) with FR May. 2014 IB(NA)-0600492ENG-B Configurator2 (Developer) supported Addition •...

  • Page 210

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

  • Page 212

    Phone: +371 (0)6 / 784 2280 Fax: +371 (0)6 / 784 2281 Mitsubishi Electric Europe B.V. / FA - European Business Group / Gothaer Straße 8 / D-40880 Ratingen / Germany / Tel.: +49(0)2102-4860 / Fax: +49(0)2102-4861120 / info@mitsubishi-automation.com / https://eu3a.mitsubishielectric.com...

This manual also for:

F800

Comments to this Manuals

Symbols: 0
Latest comments: