EasyManua.ls Logo

Mitsubishi Electric MELSEC FX3U User Manual

Mitsubishi Electric MELSEC FX3U
1000 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
Page #1 background imageLoading...
Page #1 background image
MELSEC FX Series
Programmable Logic Controllers
Programming Manual
(Basic & Applied Instructions Edition)
FX3U/FX3UC/FX3G
MITSUBISHI ELECTRIC
MITSUBISHI ELECTRIC
Art. no. 168591
16 07 2009
JY997D16601
Version F
INDUSTRIAL AUTOMATION

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi Electric MELSEC FX3U and is the answer not in the manual?

Mitsubishi Electric MELSEC FX3U Specifications

General IconGeneral
ModelFX3U
TypePLC (Programmable Logic Controller)
CPU32-bit
I/O PointsUp to 384 points
Programming LanguageLadder Diagram, Structured Text
Program Memory64K steps
Execution Speed0.065 μs per basic instruction
Power SupplyAC 100-240V, DC 24V
Output TypeRelay, Transistor
Communication PortsRS-422, RS-485, USB
Operating Temperature0 to 55 °C
Storage Temperature-25 to 70 °C
Humidity5 to 95% RH, non-condensing
Vibration Resistance10 to 57 Hz
Built-in AnalogAvailable on some models (FX3U-**AD and FX3U-**DA)

Summary

1. Introduction

1.1 Programming Language in PLCs

Explains the three types of programming languages supported: List, Circuit, and SFC programming.

2. Overview (Sequence Program)

2.1 Introduction of Convenient Functions

Covers high-speed counters, I/O refresh, input filter adjustment, and pulse catch functions.

2.2 Introduction of Applied Instructions

Highlights applied functions for data transfer, comparison, arithmetic, logical operations, and high-speed processing.

2.5 Introduction of Devices Constructing PLC

Explains the various built-in devices such as I/O relays, auxiliary relays, state relays, timers, and counters.

2.6 Program Memory and Devices

Explains the memory structure, memory operations, types of backup methods, and device initialization.

2.7 Types and Setting of Parameters

Lists parameters for setting the PLC environment, including memory capacity, comment area, and I/O assignment.

3. Instruction List

3.1 Basic Instructions

Explains basic instructions for contacts (LD, LDI, etc.), output coils (OUT, SET, RST), master control, and other instructions.

3.3 Applied Instructions ... in Ascending Order of FNC Number

Lists applied instructions categorized by function, such as Program Flow, Move and Compare, Arithmetic and Logical Operations, and Rotation and Shift.

4. Devices in Detail

4.1 Device Number List

Lists device numbers and their assignments for I/O relays, auxiliary relays, state relays, timers, and counters.

4.5 Timer [T]

Explains timer types, functions, operation examples, and set value specification methods.

4.6 Counter [C]

Details counter types, features, related devices, functions, and set value specification methods.

4.7 High Speed Counter [C] (FX3U/FX3UC PLC)

Covers types, device numbers, input assignments, handling, and cautions for high-speed counters.

4.9 Data Register and File Register [D]

Explains data registers for storing numeric data and file registers for initial values, including structures and functions.

4.11 Index Register [V and Z]

Details index registers (V and Z), their functions, structures, and indexing methods.

4.12 Pointer [P and I]

Explains pointers for branch and interrupt functions, including their numbers and operations.

5. How to Specify Devices and Constants to Instructions

5.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers)

Explains the roles and functions of numeric values like octal, decimal, hexadecimal, and real numbers.

5.2 Specification of Constants K, H and E (Decimal, Hexadecimal and Real Number)

Details specification of constants K (decimal), H (hexadecimal), and E (floating point) for operations.

5.3 Character Strings

Explains character string constants and character string data, including their storage and usage.

5.7 Indexing

Explains indexing in basic and applied instructions, covering how to use index registers for device number modification.

6. What to Understand before Programming

6.1 How to Read Explanation of Instructions

Guides on how to interpret the format of applied instructions, including mark meanings and operand types.

6.2 Cautions on Creation of Fundamental Programs

Explains programming procedures and execution order, double output operations, and circuits that cannot be programmed.

6.5 General Rules for Applied Instructions

Covers expression and operation type, handling of general flags, operation error flags, and limitations in the number of instructions.

7. Basic Instruction

7.1 LD, LDI

Explains LD and LDI instructions as contacts connected to bus lines for starting branches.

7.2 OUT

Details instructions for driving output coils such as OUT, SET, RST, PLS, and PLF.

7.3 AND, ANI

Explains AND and ANI instructions for connecting one contact in series.

7.5 LDP, LDF, ANDP, ANDF, ORP, ORF

Covers contact instructions that detect rising edge (LDP, ANDP, ORP) and falling edge (LDF, ANDF, ORF).

7.8 MPS, MRD, MPP

Explains the MPS, MRD, and MPP instructions for storing, reading, and popping intermediate results of PLC operations.

7.13 SET, RST

Details SET instruction for latching a bit device ON and RST instruction for resetting it OFF.

8. Program Flow – FNC 00 to FNC 09

8.1 FNC 00 – CJ / Conditional Jump

Explains the CJ instruction, including its operation with contacts and coils, double coil operation, and retentive timers.

8.2 FNC 01 – CALL / Call Subroutine

Details cautions on subroutines and interrupt routines, including timer and counter usage.

9. Move and Compare – FNC 10 to FNC 19

9.1 FNC 10 – CMP / Compare

Explains comparison of values in binary format and outputting results to bit devices.

9.3 FNC 12 – MOV / Move

Explains MOV and MOVP instructions for transferring contents of devices.

9.6 FNC 15 – BMOV / Block Move

Details the function of BMOV instruction for transferring data between file registers and data registers.

9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal

Explains BCD and BCDP instructions for converting binary data into binary-coded decimal data.

9.10 FNC 19 – BIN / Conversion to Binary

Details BIN and BINP instructions for converting binary-coded decimal data into binary data.

10. Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29

10.1 FNC 20 – ADD / Addition

Explains ADD and ADDP instructions for executing addition by two values to obtain the result.

10.2 FNC 21 – SUB / Subtraction

Details SUB and SUBP instructions for executing subtraction using two values.

10.3 FNC 22 – MUL / Multiplication

Explains MUL and MULP instructions for executing multiplication by two values.

10.4 FNC 23 – DIV / Division

Details DIV and DIVP instructions for executing division by two values.

11. Rotation and Shift Operation – FNC 30 to FNC 39

11.1 FNC 30 – ROR / Rotation Right

Explains ROR and RORP instructions for shifting and rotating bit information rightward.

11.2 FNC 31 – ROL / Rotation Left

Details ROL and ROLP instructions for shifting and rotating bit information leftward.

11.5 FNC 34 – SFTR / Bit Shift Right

Explains SFTR and SFTRP instructions for shifting bit devices rightward by a specified number of bits.

11.6 FNC 35 – SFTL / Bit Shift Left

Details SFTL and SFTLP instructions for shifting bit devices leftward by a specified number of bits.

12. Data Operation – FNC 40 to FNC 49

12.1 FNC 40 – ZRST / Zone Reset

Explains ZRST and ZRSTP instructions for resetting devices in a zone at one time.

12.2 FNC 41 – DECO / Decode

Details DECO and DECOP instructions for converting numeric data into ON bit.

12.4 FNC 43 – SUM / Sum of Active Bits

Describes SUM and SUMP instructions for counting the number of "1" (ON) bits in data.

12.9 FNC 48 – SQR / Square Root

Details SQR instruction for obtaining the square root of binary floating point data.

13. High Speed Processing – FNC 50 to FNC 59

13.1 FNC 50 – REF / Refresh

Explains REF and REFP instructions for outputting the latest input or output status in the middle of a sequence.

13.3 FNC 53 – HSCS / High Speed Counter Set

Details HSCS instruction for comparing value counted by a high speed counter with a specified value.

13.4 FNC 54 – HSCR / High Speed Counter Reset

Explains HSCR instruction for resetting a high speed counter.

13.5 FNC 55 – HSZ / High Speed Counter Zone Compare

Details HSZ instruction for comparing current value of a high speed counter with two values (zone).

14. Handy Instruction – FNC 60 to FNC 69

14.1 FNC 60 – IST / Initial State

Explains how devices are automatically switched and controlled when the command input is ON.

14.2 FNC 61 – SER / Search a Data Stack

Details SER and SERP instructions for searching same data, maximum value, and minimum value in a data table.

14.3 FNC 62 – ABSD / Absolute Drum Sequencer

Explains ABSD instruction for creating output patterns corresponding to current value of a counter.

14.5 FNC 64 – TTMR / Teaching Timer

Explains TTMR instruction for measuring the period of time in which TTMR instruction is ON.

14.6 FNC 65 – STMR / Special Timer

Describes STMR instruction for easily making off-delay timers, one-shot timers, and flicker timers.

14.7 FNC 66 – ALT / Alternate State

Explains ALT and ALTP instructions for alternating a bit device when the input turns ON.

15. External FX I/O Device – FNC 70 to FNC 79

15.1 FNC 70 – TKY / Ten Key Input

Explains TKY instruction for setting data to timers and counters through ten key inputs from "0" to "9".

15.2 FNC 71 – HKY / Hexadecimal Input

Details HKY instruction for multiplexing four X-devices and four Y-devices to allow 16 key (0 to F) 4-digit (byte) input.

15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input)

Explains DSW instruction for reading the set value of digital switches.

15.4 FNC 73 – SEGD / Seven Segment Decoder

Details SEGD and SEGDP instructions for decoding data and turning the seven-segment display unit ON.

15.5 FNC 74 – SEGL / Seven Segment With Latch

Explains SEGL instruction for controlling one or two sets of 4-digit seven-segment display units.

15.6 FNC 75 – ARWS / Arrow Switch

Details ARWS instruction for inputting data through arrow switches used for shifting digit and incrementing/decrementing numeric value.

16. External FX Device – FNC 80 to FNC 89

16.1 FNC 80 – RS / Serial Communication

Explains RS instruction for sending and receiving data in no-protocol communication by way of serial ports.

16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion

Details ASCI instruction for converting hexadecimal code into ASCII codes.

16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion

Explains HEX instruction for converting ASCII codes into hexadecimal codes.

16.5 FNC 84 – CCD / Check Code

Details CCD instruction for calculating horizontal parity value and sum check value.

16.6 FNC 85 - VRRD / Volume Read

Explains VRRD instruction for reading analog value of a variable analog potentiometer board.

16.7 FNC 86 - VRSC / Volume Scale

Details VRSC instruction for reading the value of a variable analog potentiometer and converting it to binary value.

17. Data Transfer 2 – FNC100 to FNC109

17.1 FNC102 – ZPUSH/Batch Store of Index Register

Explains ZPUSH/ZPUSHP instructions for temporarily batch-storing present values of index registers.

17.2 FNC103 – ZPOP/Batch POP of Index Register

Details ZPOP and ZPOPP instructions for restoring batch-stored index registers.

18. Floating Point – FNC110 to FNC139

18.1 FNC110 – ECMP / Floating Point Compare

Explains DECMP and DECMPP instructions for comparing two data (binary floating point).

18.2 FNC111 – EZCP / Floating Point Zone Compare

Details DZCP and DZCPP instructions for comparing data with two values (zone).

18.3 FNC112 – EMOV / Floating Point Move

Explains EMOV and DEMOV instructions for transferring binary floating point data.

18.4 FNC116 – ESTR / Floating Point to Character String Conversion

Details ESTR and DESTRP instructions for converting binary floating point data into character strings.

18.5 FNC117 – EVAL / Character String to Floating Point Conversion

Explains EVAL and DEVALP instructions for converting character strings into binary floating point data.

18.6 FNC118 – EBCD / Floating Point to Scientific Notation Conversion

Details EBCD instruction for converting binary floating point to scientific notation.

18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion

Explains EBIN instruction for converting scientific notation to binary floating point.

18.8 FNC120 – EADD / Floating Point Addition

Details ADD and ADDP instructions for executing addition of two binary floating point data.

18.9 FNC121 – ESUB / Floating Point Subtraction

Explains SUB and SUBP instructions for executing subtraction of two binary floating point data.

19. Data Operation 2 – FNC140 to FNC149

19.1 FNC140 – WSUM / Sum of Word Data

Explains WSUM and WSUMP instructions for calculating the sum of consecutive 16-bit or 32-bit data.

19.2 FNC141 – WTOB / WORD to BYTE

Details WTOB and WTOBP instructions for separating 16-bit data into byte units.

19.3 FNC142 – BTOW / BYTE to WORD

Explains BTOW and BTOWP instructions for combining low-order 8 bits of consecutive 16-bit data.

19.4 FNC143 – UNI / 4-bit Linking of Word Data

Details UNI instruction for combining low-order 4 bits of consecutive 16-bit data.

19.5 FNC144 – DIS / 4-bit Grouping of Word Data

Explains DIS instruction for separating 16-bit data into 4-bit units.

19.6 FNC147 – SWAP / Byte Swap

Details SWAP instruction for swapping high-order 8 bits and low-order 8 bits of a word device.

19.7 FNC149 – SORT2 / Sort Tabulated Data 2

Explains SORT2 instruction for sorting data tables based on specified group data.

20. Positioning Control – FNC150 to FNC159

20.1 FNC150 – DSZR / Dog Search Zero Return

Explains DSZR instruction for executing zero return and aligning mechanical position.

20.2 FNC151 – DVIT / Interrupt Positioning

Details DVIT instruction for executing one-speed interrupt constant quantity feed.

20.3 FNC152 – TBL / Batch Data Positioning Mode

Explains TBL instruction for executing one specified table operation from data table set in GX Developer.

20.4 FNC155 – ABS / Absolute Current Value Read

Details ABS instruction for reading the absolute position (ABS) data.

20.5 FNC156 – ZRN / Zero Return

Explains ZRN instruction for executing zero return and aligning mechanical position.

21. Real Time Clock Control – FNC160 to FNC169

21.1 FNC160 – TCMP / RTC Data Compare

Explains TCMP instruction for comparing comparison time with time data and outputting result to bit devices.

21.2 FNC161 – TZCP / RTC Data Zone Compare

Details TZCP instruction for comparing two comparison times (zone) with time data.

21.3 FNC162 – TADD / RTC Data Addition

Explains TADD instruction for executing addition of two time data and storing result to word devices.

21.4 FNC163 – TSUB / RTC Data Subtraction

Details TSUB instruction for executing subtraction of two time data and storing result to word devices.

21.5 FNC164 – HTOS / Hour to Second Conversion

Explains HTOS instruction for converting time data in units of hour, minute, and second into data in units of second.

21.6 FNC165 – STOH / Second to Hour Conversion

Details STOH instruction for converting time data in units of second into data in units of hour, minute, and second.

21.7 FNC166 – TRD / Read RTC data

Explains TRD instruction for reading clock data of the real time clock built in a PLC.

21.8 FNC167 – TWR / Set RTC data

Details TWR instruction for writing clock data to the real time clock built in a PLC.

22. External Device – FNC170 to FNC179

22.1 FNC170 – GRY / Decimal to Gray Code Conversion

Explains GRY instruction for converting binary value into gray code, and transfers it.

22.2 FNC171 – GBIN / Gray Code to Decimal Conversion

Details GBIN instruction for converting gray code into binary value, and transfers it.

22.3 FNC176 – RD3A / Read form Dedicated Analog Block

Explains RD3A instruction for reading analog input value from analog block FX0N-3A or FX2N-2AD.

22.4 FNC177 – WR3A / Write to Dedicated Analog Block

Details WR3A instruction for writing digital value to analog block FX0N-3A or FX2N-2DA.

23. Introduction of Alternate Instructions – FNC180

34.1 FNC 300 – FLCRT / File create•check

Explains FLCRT instruction for creating a file inside CompactFlashTM card and evaluating file ID.

24. Others – FNC181 to FNC189

24.1 FNC182 – COMRD / Read Device Comment Data

Explains COMRD instruction for reading comment data for registered devices written to PLC.

24.2 FNC184 – RND / Random Number Generation

Details RND instruction for generating random numbers.

24.3 FNC186 – DUTY / Timing Pulse Generation

Explains DUTY instruction for generating timing signal with specified period and ON duration.

24.4 FNC188 – CRC / Cyclic Redundancy Check

Details CRC instruction for calculating CRC value, which is an error check method used in communication.

24.5 FNC189 – HCMOV / High Speed Counter Move

Explains HCMOV instruction for updating current value of a specified high speed counter or ring counter.

25. Block Data Operation – FNC190 to FNC199

25.1 FNC192 – BK+ / Block Data Addition

Explains BK+ instruction for adding binary block data.

25.2 FNC193 – BK– / Block Data Subtraction

Details BK- instruction for subtracting binary block data.

25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare

Explains BKCMP instructions for comparing block data in various conditions.

26. Character String Control – FNC200 to FNC209

26.1 FNC200 – STR / BIN to Character String Conversion

Explains STR instruction for converting binary data into character strings (ASCII codes).

26.2 FNC201 – VAL / Character String to BIN Conversion

Details VAL instruction for converting character strings (ASCII codes) into binary data.

26.3 FNC202 – $+ / Link Character Strings

Explains $+ instruction for linking character strings.

26.5 FNC204 – RIGHT / Extracting Character String Data from the Right

Details RIGHT instruction for extracting specified number of characters from the right end of a character string.

26.6 FNC205 – LEFT / Extracting Character String Data from the Left

Explains LEFT instruction for extracting specified number of characters from the left end of a character string.

27. Data Operation 3 – FNC210 to FNC219

27.1 FNC210 – FDEL / Deleting Data from Tables

Explains FDEL instruction for deleting arbitrary data from a data table.

27.2 FNC211 – FINS / Inserting Data to Tables

Details FINS instruction for inserting data into an arbitrary position in a data table.

27.3 FNC212 – POP / Shift Last Data Read [FILO Control]

Explains POP instruction for reading the last data written by shift write (SFWR) for FILO control.

28. Data Comparison – FNC220 to FNC249

28.1 FNC224~230 – LD =, >, <, < >, <=, >= / Data Comparison

Explains LD instructions for comparing numeric values and setting a contact to ON when the condition agrees.

28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison

Details AND instructions for comparing numeric values and setting a contact to ON when the condition agrees.

29. Data Table Operation – FNC250 to FNC269

29.1 FNC256 – LIMIT / Limit Control

Explains LIMIT instruction for providing upper and lower limit values for input numeric value and controlling output.

29.2 FNC257 – BAND / Dead Band Control

Details BAND instruction for providing upper and lower limit values of dead band for input numeric value.

29.3 FNC258 – ZONE / Zone Control

Explains ZONE instruction for controlling output value based on positive or negative input value.

29.4 FNC259 – SCL / Scaling (Coordinate by Point Data)

Details SCL instruction for executing scaling of input value using a specified data table.

29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion

Explains DABIN instruction for converting numeric data expressed in decimal ASCII codes into binary data.

29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion

Details BINDA instruction for converting binary data into decimal ASCII codes.

30. External Device Communication (Inverter Communication) – FNC270 to FNC274

30.1 FNC270 – IVCK / Inverter Status Check

Explains IVCK instruction for reading the operation status of an inverter.

30.2 FNC271 – IVDR / Inverter Drive

Details IVDR instruction for writing an inverter operation required control value to an inverter.

30.3 FNC272 – IVRD / Inverter Parameter Read

Explains IVRD instruction for reading an inverter parameter.

30.4 FNC273 – IVWR / Inverter Parameter Write

Details IVWR instruction for writing an inverter parameter.

30.5 FNC274 – IVBWR / Inverter Parameter Block Write

Explains IVBWR instruction for writing parameters of an inverter at one time.

31. Data Transfer 3 – FNC275 to FNC279

31.1 FNC278 – RBFM / Divided BFM Read

Explains RBFM instruction for reading data from continuous buffer memories (BFM).

31.2 FNC279 – WBFM / Divided BFM Write

Details WBFM instruction for writing data to continuous buffer memories (BFM).

32. High Speed Processing 2 – FNC280 to FNC289

32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table

Explains HSCT instruction for comparing high speed counter value with data table.

33. Extension File Register Control – FNC290 to FNC299

33.1 FNC290 – LOADR / Load From ER

Explains LOADR instruction for reading current values of extension file registers (ER) stored in memory cassette or EEPROM.

33.2 FNC291 – SAVER / Save to ER

Details SAVER instruction for writing current values of extension registers (R) to extension file registers (ER).

33.3 FNC292 – INITR / Initialize R and ER

Explains INITR instruction for initializing extension registers (R) and extension file registers (ER) to HFFFF.

33.4 FNC293 – LOGR / Logging R and ER

Details LOGR instruction for logging specified devices and storing data to extension registers and file registers.

33.5 FNC294 – RWER / Rewrite to ER

Explains RWER instruction for rewriting extension registers (R) to extension file registers (ER).

33.6 FNC295 – INITER / Initialize ER

Details INITER instruction for initializing extension file registers (ER) to HFFFF.

34. FX3U-CF-ADP Applied Instructions – FNC300 to FNC305

34.1 FNC 300 – FLCRT / File create•check

Explains FLCRT instruction for creating a file inside CompactFlashTM card and evaluating file ID.

34.2 FNC 301 – FLDEL / File delete•CF card format

Details FLDEL instruction for deleting files stored in CompactFlashTM card or formatting it.

34.3 FNC 302 – FLWR / Data write

Explains FLWR instruction for writing data to CompactFlashTM card or buffer inside FX3U-CF-ADP.

34.4 FNC 303 – FLRD / Data read

Details FLRD instruction for reading data from CompactFlashTM card.

34.5 FNC 304 – FLCMD / FX3U-CF-ADP command

Explains FLCMD instruction for giving instruction for operation to the FX3U-CF-ADP.

34.6 FNC 305 – FLSTRD / FX3U-CF-ADP status read

Details FLSTRD instruction for reading the status of the FX3U-CF-ADP.

35. SFC Program and Step Ladder

35.1 SFC Program

Explains sequence control using SFC (sequential function chart), including roles of state relays and operation.

35.2 Step Ladder

Details step ladder instructions, expressions, and cautions, comparing them with SFC programs.

36. Interrupt Function and Pulse Catch Function

36.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function]

Explains input interrupt function triggered by external signal, covering its application and programming procedure.

36.5 Timer Interrupt (Interrupt in Constant Cycle)

Details timer interrupt function for executing interrupt routine at every specified cycle time.

36.7 Pulse Catch Function [M8170 to M8177]

Explains pulse catch function for monitoring short-time pulse signals.

36.8 Pulse width/Pulse period measurement function [M8075 to M8079, D8074 to D8097]

Details pulse width/pulse period measurement function for measuring pulse width or period.

37. Operation of Special Devices (M8000 -, D8000 -)

37.1 Special Device List (M8000 -, D8000 -)

Lists special auxiliary relays and special data registers, their numbers, and functions.

37.2 Supplement of Special Devices (M8000 - and D8000 -)

Explains supplementary special devices like RUN monitor, initial pulse, battery voltage, power failure detection, scan time, and internal clock.

38. Error Check Method and Error Code List

38.1 States and Colors of LEDs PLC Operation Status

Describes the states and colors of LEDs for PLC operation status (POWER, RUN, BATT, ERROR).

38.2 Error Code Check Method and Indication

Explains methods for checking error codes by display module and GX Developer.

38.3 Supplementary Explanation of Devices for Error Detection

Details special devices used for error detection, such as M8060-M8067 and D8060-D8067.

38.4 Error Code List and Action

Lists error codes and their corresponding actions for troubleshooting PLC errors.

Related product manuals