liminfo

Mitsubishi PLC Reference

Free reference guide: Mitsubishi PLC Reference

27 results

About Mitsubishi PLC Reference

The Mitsubishi PLC Reference is a structured quick-reference guide for programming MELSEC FX and Q series programmable logic controllers. It covers all fundamental ladder logic instructions: contact instructions (LD/LDI for NO/NC start contacts, AND/ANI for series connections, OR/ORI for parallel connections), output instructions (OUT for bit output, SET/RST for latch/unlatch), edge detection (PLS for rising edge, PLF for falling edge pulse), and block connection instructions (ANB for series blocks, ORB for parallel blocks).

The reference includes detailed timer and counter programming: T devices with 100ms/10ms/1ms resolution (T0-T199 standard, T200-T255 high-speed 1ms), counter devices (C) with count-up functionality and reset operations, and the special STMR timer for flicker and one-shot applications. Data manipulation instructions cover MOV/DMOV for 16/32-bit transfers, arithmetic operations (ADD, SUB, MUL, DIV), comparison (CMP with 3 result bits for greater/equal/less), block fill (FMOV), block copy (BMOV), and BCD/BIN conversion for digital switch interfacing.

Beyond basic instructions, the guide documents the complete Mitsubishi PLC device map: inputs X (octal numbering), outputs Y (octal), internal relays M (M0-M7679 general, M8000-M8255 special relays including M8000 always-ON, M8002 initial pulse, M8012 100ms clock), data registers D (D0-D7999 general, D8000-D8255 special including D8010 scan time), index registers Z for indirect addressing, program control (CALL/RET subroutines, FOR/NEXT loops, MC/MCR master control), and communication features including RS-485 serial (RS instruction), CC-Link remote I/O configuration, and FROM/TO special module buffer memory access.

Key Features

  • Ladder logic fundamentals: LD/LDI (NO/NC contacts), AND/ANI (series), OR/ORI (parallel), OUT (output), SET/RST (latch/unlatch), PLS/PLF (edge pulses), ANB/ORB (block connections)
  • Timer and counter programming: T devices with 100ms/10ms/1ms resolution, high-speed timers T200-T255, counter C with reset, and STMR special timer for flicker/one-shot patterns
  • Data manipulation instructions: MOV/DMOV (16/32-bit transfer), ADD/SUB/MUL/DIV (arithmetic), CMP (3-bit comparison), FMOV (block fill), BMOV (block copy), BCD/BIN conversion
  • Complete device map reference: X inputs and Y outputs (octal numbering), M relays (M0-M7679 general, M8000+ special), D registers (D0-D7999, D8000+ special), Z index registers
  • Special relay and register documentation: M8000 (always ON during RUN), M8002 (initial scan pulse), M8012 (100ms clock), D8010 (current scan time), D8012 (max scan time)
  • Program control structures: CALL/RET subroutine calls, FOR/NEXT loop execution, MC/MCR master control for section enable/disable
  • Communication reference: RS-485 serial communication (RS instruction), CC-Link remote I/O setup with station numbers and RX/RY/RWr/RWw mapping
  • Special module access: FROM/TO instructions for reading and writing buffer memory on analog, positioning, and communication modules

Frequently Asked Questions

What basic ladder logic instructions does this reference cover?

The reference covers all fundamental Mitsubishi ladder instructions: LD/LDI (start with NO/NC contact), AND/ANI (series NO/NC contact), OR/ORI (parallel NO/NC contact), OUT (bit output), SET/RST (latch set/reset that holds state), PLS (rising edge one-scan pulse), PLF (falling edge one-scan pulse), ANB (series connection of two parallel blocks), and ORB (parallel connection of two series blocks). Each instruction includes syntax and practical ladder examples.

How do Mitsubishi PLC timers work and what are the resolution options?

Timers use T devices with a preset value in the specified time base. Standard timers (T0-T199) have 100ms resolution, so OUT T0 K50 creates a 5-second timer (50 x 100ms). High-speed timers (T200-T255) operate at 1ms resolution for precision timing. Timers count up while their input condition is ON and turn ON their contact when reaching the preset. The STMR instruction provides special timing patterns including delayed ON, delayed OFF, one-shot, and flicker outputs.

How does the octal numbering system work for X and Y devices?

Mitsubishi FX series uses octal numbering for input (X) and output (Y) devices. This means digits only go from 0 to 7: X0-X7 form the first byte, X10-X17 the second byte, X20-X27 the third, and so on. There is no X8 or X9. This octal convention matches the physical I/O wiring groups of 8 points per module. Internal devices (M, D, T, C) use standard decimal numbering.

What are the special M relays (M8000 series) and how are they used?

Special relays (M8000-M8255) provide system status and control functions. Key examples: M8000 is always ON during RUN mode (useful as a constant TRUE contact), M8002 turns ON for exactly one scan at power-on/RUN start (for initialization routines), M8012 provides a 100ms clock signal for blinking indicators. These special relays are read-only system flags that reflect PLC operating conditions.

How does the CMP (compare) instruction work with 3 result bits?

CMP D0 K100 M0 compares the value in D0 against the constant 100 and sets three consecutive result bits: M0 turns ON if D0 > 100 (greater than), M1 turns ON if D0 = 100 (equal), and M2 turns ON if D0 < 100 (less than). This three-bit result pattern allows direct branching for all comparison outcomes in subsequent ladder rungs without needing additional comparison instructions.

What is the difference between MOV and DMOV instructions?

MOV transfers a 16-bit value (range -32768 to +32767) between registers, such as MOV K100 D0 to store 100 in D0. DMOV transfers a 32-bit value (range -2147483648 to +2147483647) and uses two consecutive registers, such as DMOV D0 D100 which transfers the 32-bit value from D0-D1 to D100-D101. Use DMOV when values exceed the 16-bit range or when working with 32-bit arithmetic results from DMUL or DDIV instructions.

How do I set up CC-Link communication?

CC-Link configuration requires setting the master station number (typically 1) and defining remote device ranges: RX (remote inputs, e.g., X1000~), RY (remote outputs, Y1000~), RWr (remote read registers, D1000~), and RWw (remote write registers, D1100~). Each slave module occupies a station number with a specified number of occupied stations (e.g., 4). The master polls all slaves cyclically for real-time remote I/O data exchange.

What do the FROM and TO instructions do?

FROM reads data from a special function module's buffer memory into PLC data registers, and TO writes PLC data to the module's buffer memory. Syntax: FROM H0 K0 D0 K1 reads 1 word from slot 0, buffer address 0 into D0. TO H0 K1 D10 K1 writes D10 to slot 0, buffer address 1. These instructions are essential for communicating with analog input/output modules, positioning modules, and communication modules that have their own internal buffer memory.