plc programming examples

plc programming examples

plc timer programming examples

plc timer programming examples

Mitsubishi PLC counter application ladder programming

Mitsubishi PLC counter application ladder programming

Mitsubishi counter
This example is not practical, but it is very useful for analyzing program execution. Only one button is needed at the input of the system, and there is no output. Referring to Figure 1, only X0 is connected. In the analysis of Fig. 3, in the three cases (a), (b), and (c), the current value of the counter is observed, and the program execution process is analyzed.
In the program, M8011 is a special auxiliary relay. As long as the PLC is in running state, it will send a 10ms pulse signal (5ms pass, 5ms off). T0 is 1s timing in the program, 1s after X0 is closed, and T0 is on. C0 is an up counter, and the number of pulses emitted by M8011 is recorded under the premise that X0 is closed and T0 is not closed. In theory, when T0 is on and the C0 counter stops counting, the current value of the counter should be 100 (1s/10ms = 100 pulses). In the three-stage program, only the position before and after execution is changed, but the result is different. The reason is analyzed in conjunction with the corresponding timing diagram.
PLC industrial control board digital tube machine FX1N_10MT delay module

PLC industrial control board digital tube machine FX1N_10MT delay module

6 input, 4 point open collector outputWide supply voltage 10-28VDC
Dimensions: length X width X high:36X73X20Mm

This board is PLCboard, the direct use of GX programming software ladder diagram, written directly to the PLC, you can monitor online, even cheaper than the microcontroller board.

Advantages of using PLC boards:
1 programming convenience, customers can learn to learn a day
2 reusable
3 high stability
4 easy to expand

The history of the smallest volume, the cheapest display and display panel input parameters, functions as a touch screen, touch screen is another advantage compared to the greater is the board without programming, digital display and input parameters can be fitted.

1 a power will always show the value of the data register D0 mode, the user can be used in the PLC ladder diagram MOV D D0 command to change the value of D0 can display the value of different data registers.
2 when you press the MODE button for 3 seconds on the left of the decimal point will light up into the adjustment data register number model, then through the two buttons on the right side of the increase or decrease the value, to adjust to adjust the data register number, such as D128 will be set to 100 in the pace of 128.
3 press the MODE button 3 seconds on the right side of the decimal point will light up into the adjustment step of the selected data register value model, the same through the two buttons on the right side of the increase or decrease the value, to adjust the data register values, such as D128 will be set to 100, in this step 100
4 when pressing the MODE key for 3 seconds, then enter the value pattern of the data register D0.
The latest additions are as follows:
The data register has been displayed in the D0, D2 value mode, can be displayed on the board after the MODEThree buttonsUP, DOWN, RST control 3 intermediate relay M, corresponding to the following:
RST key press, M173 conductionRST key release, M173 disconnect
DOWN key press, M172 conductionDOWN key release, M172 disconnect
UP key press, M171 conductionUP key release, M171 disconnect

Equivalent to an increase of 3 buttons, you can use the display board on the 3 buttons used when the button is used, such as the UP key used to run the motor DOWN is used to stop the motor running RST used to count cleared.
DDCSV2.1 Engraving machine CNC 4 axis CNC system step servo replace NC Studio MACH3 offline controller

DDCSV2.1 Engraving machine CNC 4 axis CNC system step servo replace NC Studio MACH3 offline controller



The highest 500K stepper motor control pulse output, suitable for most of the machine tool system needs, completely offline control without a computer, U disk running G code, 4 axis 3 axis can be selected. Support standard hand pulse.
Farewell to the era of engraving machine running the computer!!!
The controller = microcomputer + engraving machine (CNC) interface board
Reliability and anti - interference > computer installed MACH3 system + MACH3 interface board

1.1 product description

Feisite NC attention NC industry for 7 years, specializing in a variety of high quality, high reliability of CNC system research, development and production. Can produce commonly used direct current brushless drive, stepper motor drive, single axis to 6 axis linkage CNC system.

DDCSV1 is the 4 axis 4 linkage motion controller which is developed through 4 years of research and development; each position control cycle 4 ms, high control precision. The highest single output pulse is 500KHz, and the pulse width is adjustable. Support common stepper motor and servo motor.

DDCSV1 numerical control system uses ARM+FPGA design framework, ARM to complete the man-machine interface and code analysis, FPGA complete the underlying algorithm and control pulse generation part. Reasonable design, reliable control, convenient operation.

DDCSV1 panel layout is reasonable, the 17 key to complete common offline operation, support for the general purpose of FANUC G compatible.

This manual introduces the operation method of the DDCSV1, the machine tool and the operation procedure of the machine tool. Through a large number of illustrations and examples of the use of the DDCSV1 can learn to use the faster the CNC system.

1.2 product performance parameters

  • 16 opto isolated ordinary digital input interface;

  • 3 opto isolated ordinary digital output interface;

  • 1 0-10V main shaft speed analog output interface (which can be modified into PWM output);

  • Support 3 channel stepper motor control, single channel maximum 500KHz control pulse output;

  • ARM9 master control chip;

  • FPGA core algorithm chip;

  • 4.3 inch TFT screen, resolution 480*272;

  • 17 operation keys (one spare key, no definition);

  • The main control equipment for 5V power input, current capacity of not less than 1A, with a 220V 5V4A power adapter;

  • Support U disk read G instruction, G instruction file size no requirements;

  • Equipped with hand and pulse interface, support the company's digital hand, while supporting the common hand in the market.

  • The support panel key point and single axis manual operation;

  • Support for fast running position operation;

  • Support for multi coordinate system (coordinate system can not be saved, 0);

  • Support save breakpoint function (run by the pause button to automatically save);
  • Please note:
  • 1, the offline system, run the U disc G code, without computer, without other control equipment
    2, control 4 stepper motor operation
    3, with 15 input interface, including the limit stop and other functions, to support the breakpoint continued carving
    4, with 4 programmable output interface, including water cooling, spray cooling and other controlled peripheral.
    5, the spindle speed adjustment VSO mode (0-10V) dual mode.
    6, independent design system software.
    7, USB interface, support common U disk system.
    8, DCDC electrical isolation
    10, the highest 500K stepper motor control pulse output, suitable for most of the machine tool system needs.
    11: support for standard hand pulse, control the feeling is like a hand twisting motor position
    12: support standard G code system, compatible with FANUC
    13: embedded case design, easy to install on any cabinet panel.
    14: integrated power supply stability system, can fight the general spindle motor electromagnetic interference.
    15: high speed output interface chip, provide enough current and pulse frequency signal output.
    16:LPC industrial grade master control chip, improve system stability.
1.3 product appearance and dimensions

DDCSV2.1 using embedded shell structure, can make a square hole in the cabinet, and the device is embedded with a square hole, from the inside with 2 locking locking mechanism can be the device fixed on the cabinet, convenient installation. Product appearance size diagram, Figure 1-1 and figure 1-2.

Product panel size is 163mm*102mm*5mm;

The main body of the size of 156mm*93mm*45mm;

The size of the cabinet is 156mm*93mm.
Presentation: 8G, high performance U disk , adapter power supply .
Note: in order to facilitate customs clearance, please leave a message to declare the value, if not the instructions will be completed in accordance with the sale price. 

Package including:

1PCS CONTROLLER

1PCS USB CABLE
1PCS CD
1PCS 4G USB Memorycard
DSC_0067(1)DSC_0060DSC_0062(1)



TB242Q2gXXXXXaHXXXXXXXXXXXX_!!275302225
MITSUBISHI PLC’s PROG light

MITSUBISHI PLC’s PROG light

The main reason is that the program written by PLC has made mistakes, some of which may be logical errors, or may be input errors. You have to check it out.
Programmable logic controller (programmable logic controller), which uses a class of programmable memory used in its internal storage program, executes user oriented instructions such as logic operation, sequence control, timing, counting and arithmetic operation, and controls various types of machinery or production process by digital or analog input / output.
ALM light on MITSUBISHI PLC

ALM light on MITSUBISHI PLC

ALM refers to the alarm, which may be PLC running some problems.
MITSUBISHI PLC’s fault light prog.e light

MITSUBISHI PLC’s fault light prog.e light

PROG.E is a program error indicator. This light is usually a mistake on the program. You can look at the error number in the special register D8060-D8069 to determine where the error is, and let’s look at the programming manual.
Proge alarm for MITSUBISHI PLC

Proge alarm for MITSUBISHI PLC

“PROG.E” LED flashes, it is an error indication.
The light LED flashes when the timer, the constant of the counter, the circuit, the battery voltage, the abnormal noise, the conductive foreign object, and the contents of the program memory are changed. Please check the program again to check whether there is any conductive foreign matter mixed, whether there is a serious noise source, and check the indication value of the battery.
MITSUBISHI pLC, alarm display ERROR

MITSUBISHI pLC, alarm display ERROR

Error display
“[EPROR] LED scintillation”
When the equipment exceeds the specification, the circuit is not good, or there is abnormal noise, conductive foreign matter mixed into the cause of the changes in the contents of the program memory.
The LED will flash, the programmable controller STOP, and the output will change to OFF. In this case, please reconfirm the program and check it.
There are no conductive foreign bodies and high intensity noise sources.
“[ERROR] LED light”
(CPU) due to the mixing of conductive foreign matter inside the programmable controller or external abnormal noise, it results in runaway or over operation cycle.
200ms, WDT error, the LED lamp is bright, programmable controller STOP, and all outputs are OFF.
Power failure reset, if the programmable controller returns to normal, please check whether there is abnormal noise source, whether there is conductive foreign matter mixed.
In addition, please check whether there are third kinds of grounding according to the specifications and external wiring of the [4. power circuit.
The results of inspection should be checked according to the 8.1 item if there is a change in the LED light. If the LED still keeps the light state.
Please confirm that the program operation cycle is too long.
If all the checks are carried out, the light state of the [ERROR]LED can not be removed, and some kind of failure should be taken into consideration in the programmable controller.

Top