0% found this document useful (0 votes)
285 views29 pages

Mitsubishi FX Advanced Analog and Digital Programming Tutorial 1

This document provides an overview of programming concepts for Mitsubishi PLCs including basic programs, commands, timers, counters, data registers, and math functions. It explains programming for normal and latching operation, set/reset commands, zone reset commands, auxiliary relays, on/off timers, and differences between general and retentive timers. Practical examples are provided for various programming elements including timers, counters, data manipulation, and mathematical functions. The document is intended to teach programming of Mitsubishi PLCs for analog and digital control applications.

Uploaded by

Fake INC
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
285 views29 pages

Mitsubishi FX Advanced Analog and Digital Programming Tutorial 1

This document provides an overview of programming concepts for Mitsubishi PLCs including basic programs, commands, timers, counters, data registers, and math functions. It explains programming for normal and latching operation, set/reset commands, zone reset commands, auxiliary relays, on/off timers, and differences between general and retentive timers. Practical examples are provided for various programming elements including timers, counters, data manipulation, and mathematical functions. The document is intended to teach programming of Mitsubishi PLCs for analog and digital control applications.

Uploaded by

Fake INC
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Mitsubishi FX advanced Analog and Digital Programming Tutorial

Creator by voltacdc.com

MITSUBISHI PLC
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

MITSUBISHI BASIC PROGRAM 1: WITHOUT LATCHING


THIS COMMAND WILL BE USED FOR NORMALLY TURNING ON A LOAD WITHOUT

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
LATCHING

MITSUBISHI BASIC PROGRAM 2:WITH LATCHING


THIS COMMAND WILL BE USED FOR TURNING ON AND TURNING OFF A LOAD BY PUSH
BUTTONS WITH LATCHING

MITSUBISHI BASIC PROGRAM 3: SET-RESET COMMAND


COMMAND SYNTAX: [SET Y0]
[RST Y0]
SET: THIS COMMAND WILL BE USED FOR TURNING ON A LOAD BY PUSH BUTTON
WITHOUT THE HELP OF LATCHING.
RST: THIS COMMAND WILL BE USED FOR TURNING OFF A LOAD WHICH WAS TURNED
ON BY SET COMMAND.

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
WE WILL FURTHUR USE THIS COMMAND FOR RESETING TIMERS AND COUNTERS AS
WELL.

SPECIAL COMMAND:ZONE RESET


COMMAND SYNTAX: ZRST (Y0-NUMBER OF INPUT COILS)

THIS COMMAND WILL BE USED TO RESET TOTAL NUMBERS OF COILS WITH A SINGLE
PUSH BUTTON OR SWITCH.

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

GENERAL STABLE STATE AUXILARY RELAYS:


A NUMBER OF AUXILARY RELAYS ARE USED IN THE PLC. THE COILS OF THESE RELAYS
ARE DRIVEN BY DESIGN CONTACTS IN THE PLC THE SAME WAY OR MANNER THAT THE
OUTPUT RELAYS ARE DRIVEN IN THE PROGRAM.

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

TIMERS IN MITSUBISHI PLC: TIMER COMMAND IS USED IN A PLC TO SET ON/OFF A


LOAD ACCORDING TO THE SET TIME IN THE TIMER.

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

10ms timer calculation:


formula 10ms/1000ms=
0.01 sec
10ms*100=1000ms=1 sec

T200K100

10ms*100=1000=1s

DIFFERENCE BETWEEN GENERAL ON/OFF TIMERS AND RETENTIVE/LATCHED ON/OFF


TIMERS.

GENERAL TIMERS:DURING OPERATION IF PLC LOSE ITS POWER, THESE GENERAL TIMER
LOSEITS CURRENT ACCUMULATIVE VALUE AND AGAIN START FROM ZERO WHEN
PLCGET POWER.
RETENTIVE / LATCHED TIMERS:
DURING OPERATION IF PLC LOSE ITS POWER, THESE RETENTIVE TIMERS WILL NOT
LOOSE ITS ACCUMULATIVE CURRENT VALUE AND AGAIN START FROM PREVIOUS
RUNNING VALUE WHEN PLC GET POWER.

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

ON DELAY TIMER PRACTICAL PRACTICE


COMMAND SYNTAX: (T0 K100)

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

RETENTIVE TIMER PRACTICE:

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
TWIN TIMER PRACTICAL PRACTICE:

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
NORMAL TIMER VS RETENTIVE TIMER PRACTICE:

TIMER COMPLICATED PRACTICE:

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
TURN ON ALL THE LOADS WITH A SINGLE SWITCH. EACH LOAD WILL TURN ON BY THE
TIME DIFFERENCE OF 5,10,15,20,25 SEC. WHILE THE TIMER WILL COUNT THE TIME,
EACH LOADS CONNECTED TO THE NC CONTACTS OF THE TIMERS WILL BE ON FOR THE

TRAFFIC
CONNECTESIGNAL PRACTCAL
D TO THE PRACTICE:
NO CONTACT OF THE TIMERS WILL BE TURNED ON.

COUNTERS IN MITSUBISHI PLC:


The counters of the built-in PLC functions are up counters. An up -counter stops counting
and its contact turns on when the count value reaches the setting.
1. Count processing
• The coil of the counter is turned on /off at execution the OUT-C instruction and its
GIVEN TIME PERIOD AND AFTER THE TIMERS FINISHES COUNTING ,EACH LOADS
resent value are updated and their contact turns on after execution of the END
instruction.
• The counter counts on detection of the leading edge (OFF to ON) of the coil. It does
not count if the coil remains on.

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
2. Counter resetting
• The count value is not cleared even if the coil turns off. Use the RST C instruction
to clear the count value and turn off the contact.
• When the counter is reset by the RST instruction, the present value and contact
of the counter are cleared at execution of the RST instruction.

COUNTER TYPE FX-1S FX-1N FX 2N FX 2NC


GENERAL 16 16 16 100 100
BIT UP (C0-C15) (C0-C15) (C0-C99) (C0-C99)
COUNTER
LATCHED 16 16 184 100 100
BIT UP (C16-C31) (C16-C199) (C100-C199) (C0-C199)
COUNTER

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
Command Syntax: (C0 k5) Star-Delta Practical Practice in Mitsubishi PLC:
Normal Vs Latched Counter Practical Practice:

Counter Combined with Timer & Sensor Practical Practice:

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
Wiring of Mitsubishi PLC: WIRING OF FX-1N 40 MR CPU MODEL

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

DATA REGISTERS IN MITSUBISHI PLC:


PLC IN THE INPUT AND OUTPUT PROCESSING, ANALOG CONTROL, POSITION CONTROL,
THE NEED FOR MANY DATA REGISTERS TO STORE DATA AND PARAMETERS. THE DATA
REGISTER IS 16 BITS. TWO DATA REGISTERS CAN BE USED TO STORE 32-BIT DATA. THE
DATA REGISTERS ARE OF THE FOLLOWING TYPES:
1. GENERAL DATA REGISTER (D0 ~ D199)
A TOTAL OF 200 POINTS. D0 ~ D199 DON’T HAVE POWER PROTECTION FUNCTION;
WHEN THE HARDWARE FACE THIS SITUATION, PLC FROM RUN → STOP OR POWER
FAILURE, THE DATA IS CLEARED.
2. POWER-DOWN HOLD DATA REGISTER/LATCH BACK UP DATA REGISTER (D200 ~
D7999)
A TOTAL OF 7800 POINTS, THESE DATA REGISTER WILL KEEP THE VALUE OR WILL NOT
LOSE THE VALUE SAVED IN THEM EVEN IF THE PLC LOSE POWER.
3. SPECIAL DATA REGISTER (D8000 ~ D8255)
A TOTAL OF 256 POINTS. THE FUNCTION OF THE SPECIAL DATA REGISTER IS USED TO
MONITOR THE RUNNING STATUS OF THE PLC. SUCH AS SCAN TIME, BATTERY VOLTAGE
AND SO ON. UNSPECIFIED SPECIAL DATA REGISTERS THAT THE USER CANNOT USE. FOR
DETAILS, REFER TO THE USER MANUAL.

DATA REGISTERS PRACTICAL PRACTICE:


COMMAND SYNTAX: FOR RISING EDGE TRIGGER LDP X1
FOR INCREMENT OF A REGISTER INC D0
FOR DECREMENT OF A REGISTER DEC D0

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

BEST INDUSTRIAL AUTOMATION TRAINING CENTER IN BANGLADESH

TIMER COMBINED WITH DATA REGISTER:


COMMAND SYNTAX: OUT T0 D0

YouTube: Multipurpose Engineering & Industrial Automation


Facebook: www.facebook.com/meia1700

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
COUNTERS WITH DATA REGISTERS: IN THIS PROGRAM INSTEAD OF SETTING THE
VALUE IN K WE WILL SAVE THE COUNT VALUE IN DATA REGISTER SUCH AS D456 AND
THE COUNTER WILL ACT OR COUNT ACCORDINGLY. WE HAVE USED HERE BOTH
NORMAL AND LATCHED COUNTER TO SHOW YOU THEIR WORKING DIFFERENCE.

COMMAND SYNTAX: OUT C0 D0

COMMAND FOR 16 BIS & 32 BITS DATA MATHEMATICS:

FUNCTIONS COMMAND FOR 16 BITS COMMAND FOR 32 BITS


ADDITION ADD DADD
SUBTRACTION SUB DSUB
MULTIPLICATION MUL DMUL
DIVISION DIV DDIV

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
ADDITION OPERATION PRACTICAL PRACTICE:
MATH FUNCTIONS IN MITSUBISHI PLC:
ADD COMMAND USE: FOR ADDING TO DATA REGISTERS WE USE ADD COMMAND.
SUB COMMAND USE: FOR THE SUBTRACTION OF TWO DATA REGISTERS WE USE SUB
COMMAND.
MUL COMMAND USE: FOR THE MULTIPLICATION OF TWO DATA REGISTERS WE USE
MUL COMMAND.
DIV COMMAND USE: FOR THE DIVISION OF TWO DATA REGISTERS WE USE DIV
COMMAND.
COMMAND SYNTAX: ADD D0 D5 D678
SUB D0 D5 D600
MUL D0 D5 D601
DIV D0 D5 D602

IF WE PRESS X0 THE VALUE OF D0 WILL BE INCREASED & FOR PRESSING X1 THE VALUE
OF D0 WILL BE DECREASED. ALL THE VALUE OF ADDITION, MULTIPLICATION, DIVISION &

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
SUBTRACTION WILL BE SAVED TO THE DESTINATION REGISTER SUCH AS D678.
All Arithmetic Practical Practice:

THE VALUE OF D0&D5 WILL BE SAVED TO D678,D679,D600&D681 REGISTOR.

Floating Numbers Programming:

Functions Commands for Floating Number:


Addition DEADD
Subtraction DESUB
Multiplication DEMUL
Division DEDIV
Sine angle DSIN
Cosine angle DCOS
Tan angle DTAN
Asine angle DASIN
ACosine angle DACOS
Atan angle DATAN
Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

Floating to integer DINT


Floating radian to degree Ddeg
Floating degree to radian Drad

Floating Numbers Practical Practice: These commands will be used only for fx3u cpu WE
Command Syntax: deadd e(any float number) e(another float number) number of data register
desub e(any float number) e(another float number) number of data register
demul e(any float number) e(another float number) number of data register
dediv e(any float number) e(another float number) number of data register
dsin d0(number of the data reg whose value we want to change) d8(number of
data register where we want to save the value)

NEED 2 DATA REGISTERS TO SAVE 32-BIT DATA. THAT’S WHY WE HAVE TAKEN ALL THE
EVEN NUMBERS OF DATA REGISTERS.

COMPARISON COMMAND IN MITSUBISHI PLC:


Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
COMMAND SYNTAX: FOR EQUAL TO COMMAND LD= D0 K20
FOR LESS THAN COMMAND LD< D0 K10
FOR GREATER THAN COMMAND LD> D0 K15
FOR GREATER THAN EQUAL TO COMMAND LD>= D0 K20
FOR LESS THAN equal to command ld<= d0 k15
All Comparison Command Practical Practice:

WHEN X0 WILL BE PRESSED THE VALUE OF D0 WILL BE INCREASED AND WHEN X1 WILL
BE PRESSED THE VALUE OF D0 WILL DECREASE. IF D0=K15 OUTPUT Y0 WILL BE TURNED
ON. IF D0<K10 OUTPUT Y1 WILL BE TURNED ON. IF D0>K15 OUTPUT Y2 WILL BE TURNED
ON. IF D0>=K15 OUTPUT Y3 WILL BE TURNED ON. IF D0<=K10 OUTPUT Y4 WILL BE
TURNED ON.
Use of “MOV” Command in Mitsubishi PLC:
MOV IS THE TRANSFER INSTRUCTION IN MITSUBISHI PLC. ITS FUNCTION IS TO

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
TRANSMIT THE SOURCE DATA TO THE SPECIFIED TARGET. WHEN X0 IS ON, K100 IS SENT

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
TO D10 AND AUTOMATICALLY CONVERTED TO BINARY NUMBERS.
MOV Command Practical Practice in Mitsubishi PLC:
COMMAND SYNTAX: MOV K10 D10

WHEN M0 WILL BE ON THE VALUE OF K WILL BE MOVED TO D100. SAME CASE WILL BE
REPEATED FOR M1, M2, M3 AND SO ON.
USE OF COMPARISON COMMAND IN MITSUBISHI PLC:
COMMAND SYNTAX: FOR 16-BIT DATA “CMP”
FOR 32-BIT DATA “DCMP”
FOR FLOATING DATA “DECMP”

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com
“CMP” COMMAND PRACTICAL PRACTICE:

“CMP” COMMAND USING AND LOGIC:

Website: voltacdc.com
Mitsubishi FX advanced Analog and Digital Programming Tutorial
Creator by voltacdc.com

CALL JUMP INSTRUCTION: IT IS USED TO CALL SPECIFIC PROGRAM TO BE EXECUTED.


COMMAND SYNTAX: [CJ P20]
END INSTRUCTION : FEND

IN THIS INSTRUCTION X2 WILL NOT WORK UNLESS WE PRESS X0 TO CALL THE


COMMAND. HERE X2 IS DEPENDENT ON X0 TO ENABLE IT FOR COMPLETING THE
GIVEN TASK. ONLY X1 CAN WORK OR ACT DEPENDENTLY IN THIS PROGRAM.

Website: voltacdc.com

You might also like