If you want to enter a timer command, you should click the “-O-” button because the timer is handled as a coil.
Then enter data such as “t0 k100” format
In addition, the timers and counters of Mitsubishi plc are coil instructions instead of function instructions.
X0 is closed. The timer starts timing, and X0 is off. The timer is reset. X1 turns on the counter for a number of times, X1 turns the counter on again to count a number, and X2 closes the counter to reset.
After zooming in on the view, it cannot be displayed in full screen.
Can not control the size of the ladder, can only change the size of the annotation and the number of contacts displayed in each row;
The number of contacts in the menu bar – “Tools -” option, pop-up dialog box point program editor – “ladder -” ladder diagram,
Select the number of display contacts in the display format,
It is recommended to choose 13 or 11.
1, need programming software, GX Developer 8.86Q
2, need to programme cable usb-sc09-fx.
Connect the programming software and PLC with the programming cable, online transfer settings (COM port settings) PLC read check the program + parameters, click to execute. You can
You need to convert the input engineering quantity value into actual reading according to the module. 4ma corresponds to 0, 20ma corresponds to 4000, and the other is the proportional correspondence between the other, then see the example program of the program processing in the module manual, directly apply.
Note the module address. The same is true for D/A conversion. By arithmetic processing, the actual reading is multiplied by 4000. After dividing by the range, the data is stored in the D area, and then the manual is displayed, and there is a D/A conversion program.
According to the analog module you selected to confirm the programming, the basic framework is unchanged, use TO to write the BFM value of your module’s buffer memory, use FROM to read the module’s BFM value, current value, channel selection Wait for some parameters you need.
The CPU has a digital module and two analog input modules. The order of the modules is the first digital quantity and then the analog quantity. The module number analog quantity becomes 1 and 2.
The first k1 represents the module number, k12 represents the read module 12 register, d0 represents the presence of the d0 data area, and k1 represents the reading of a data.
The cup+ digital module + special module is the order. Mitsubishi’s special modules have special numbers, and the number added in front is the same. Module 4-20ma is the input standard for the module
1. In the GX-Develop (programming interface) menu, the “Display” drop-down – comment display, make sure all comments can be seen, then click on the “Device Comments” in the leftmost project bar, double-click “COMMENT” “All the uncommented X, Y, and M devices have been commented out. You can add them after you need to fill in the comments. You can see them by closing them back to the programming interface.” – This method is suitable for batch comments
2. On the programming interface menu bar, find the “Comment Edit” button, click on the double-click on the device you want to edit, and type it, but if you want to continue programming, you need to click this button again to return to the programming state.
Generally used in data display and data input, supporting some such as calculating and displaying the current value, setting some such as speed. Time, etc.
Inputs must be used in accordance with the application instructions, such as data comparison instructions:
There are many brands of PLC, there are many programming softwares, corresponding to their respective brands or series, commonly used are Mitsubishi, Omron, Siemens and so on. . .
The lower version of Mitsubishi is called Fxgpwin, and the high version is called GX-developer. You can use simulation software.
OMRON’s PLC programming software is called CX-P, and the full name is CX-ONE. Low versions such as SSS and CPT are rarely used.
SIEMENS’s S7-200 series is called STEP7-MicroWIN 4.0 SPx [version patch]
The S7-300/400 series is called STEP7, and the highest Chinese version is STEP7-5.4 SP4.
If you are just starting to learn, it is recommended to start with Mitsubishi or Omron. These softwares are free on the Internet and are easier to understand and get started. It is also widely used in society. . .
PLC is a programmable logic controller
Generally used in comparison, Siemens S200, S300, S400
Mitsubishi’s FX1N, FX2N Q series, etc.
Taiwan University PLC. . . . a lot of
If you are a new scholar, it is recommended to learn Delta’s PLC or Mitsubishi PLC first, mainly because these two are close to the general circuit control, so understand, get started quickly.
The timer in the PLC counts the time, and the counter counts the events.
The timer does count only the time, and the counter has a certain period of time because the PLC has a scan period, and the timing can be implemented with the timer or the corresponding logic.
Similarities and differences between timers and counters of Mitsubishi PLC
1， function is different, one timing, one counting
2， code is different, one is T and one is C
3，The trigger mode is different, the timer should be always on, and the counter only needs one pulse.
4， Once the timer reaches the set value, it will not be counted again, and the counter can reach the set value and can count up in the past.
5， When the counter and timer are written, the format is almost the same as the code before the set value is after
6， Both can be triggered by time delay
The timer of the Mitsubishi plc FX series is a power-on delay timer. Its working principle is that after the timer coil is energized, the delay starts, the time is up, the contact action; when the timer coil is powered off, the timer The contact is instantly reset.
However, in practical applications, we often encounter control requirements such as power-off delay, time-limited control, and long delay, which can be achieved through programming.
1, power-on delay control
The delay on control program is shown in Figure 3-27. The control function it realizes is that after X1 is turned on 5, Y0 has output.
The working principle is analyzed as follows:
When X1 is in the 0N state, the coil of the auxiliary relay M0 is turned on, and its normally open contact is closed and self-locking, so that the coil of the timer T0 can be kept in the power state.
After the coil of T0 is turned on for 5 s, the current value of T0 is equal to the set value, the normally open contact of T0 is closed, and the coil of output relay Y0 is turned on.
When X2 is in the ON state, the coil of the auxiliary relay M0 is turned off, the timer T0 is reset, and the normally open contact of T0 is turned off, so that the coil of the output relay Y0 is turned off.
2, power failure delay control
The delay off control program is shown in Figure 3-28. The control function it implements is that the output stops working after the input signal is disconnected for 10s.
The working principle is analyzed as follows:
When X0 is in the ON state, the coil of the auxiliary relay M0 is turned on, its normally open contact is closed, and the coil of the output relay Y3 is turned on. However, the coil of timer T0 will not be energized (because its front () is off).
When X0 changes from ON to OFF, () is in the on state, and timer T0 starts counting. After l0s, the normally closed contact of T0 is opened, the coil of M0 is de-energized, and the output relay Y0 is disconnected.
3, limited time control
In actual engineering, it is often encountered to limit the working time of the load to a specified time. This can be achieved by the program shown in the figure, which implements the control function of controlling the maximum working time of the load as l0s.
The program can achieve the minimum working time to control the load. The control function implemented by this program is that the minimum working time of the output signal Y2 is 10s.
4, long delay control program
In the PLC, the timer’s timing is limited, the maximum is 3276.7s, less than lh. To achieve longer timing, you can use two or more timer cascades, or use a timer with a counter, or use a counter with a clock pulse.
(1) Timer cascade use
When the timer is used in cascade, its total timing is the sum of the time set by each timer.
Figure Use two timers to complete the 1.5h timing. When the timing is up, Y0 is powered.
(2) Combination of timer and counter
The timing of 1h is completed with a timer and a counter.
When X0 is turned on, M0 is powered and self-locked, and timer T0 generates a pulse sequence with a period of 100s by itself resetting as a count pulse of counter C0. When the counter has 36 pulses, its normally open contact closes, causing output Y0 to turn on. From X0 to Y0, the delay time is 100s x 36 = 3600s, which is 1h.
(3) Combination of two counters
Figure 3-33 shows the timing of 1h with two counters.
M8013 (1s clock pulse) is used as the count pulse of counter C0. When X0 is turned on, counter C0 starts counting.
After 60 pulses (60 s) have been counted, its normally open contact C0 sends a count pulse to counter C1 and resets counter c0.
The counter C1 counts the c0 pulse. When 60 pulses are counted, the normally open contact of C1 is closed, and the output Y0 is turned on. From X0 to Y0, the timing is 60s x 60 = 3600s, which is 1h.
5, boot cumulative time control program
The PLC running cumulative time control circuit can be used in combination with M8000, M8013 and counter to compile the display circuit of seconds, minutes, hours, days and years. Here, you need to use the power-off type counter (C100~C199), so that the accumulated time of each power-on can be timed, as shown in the figure.
The timer in the PLC is a device inside the PLC. Its function is equivalent to the time relay in the relay system. There are several hundred timers inside. The timer is based on the accumulated timing of the clock pulse. There are three kinds of clock pulses: 1ms, 10ms, and 100ms. When the measured time reaches the set value, the output contact operates.
The integrated timer has the function of counting accumulation. If the power is turned off or the timer coil is OFF during the timing, the calculation is calculated.
The current device will maintain the current count value (current value), and continue to accumulate after power-on or the timer coil is ON, that is, its current value has a hold function, and the current value becomes 0 only when the integrated timer is reset.
(1) The 1ms integration timer (T246 to T249) is a total of 4 points, which is the cumulative counting of 1ms clock pulses. The timing time range is 0.001 to 32.767s.
(2) The 100ms integration timer (T250 to T255) has a total of 6 points, and the time range for accumulating the count of 100 ms clock pulses is 0.1 to 3276.7 s.
The general-purpose timer is characterized by the fact that it does not have a power-down hold function, that is, the timer is reset when the input circuit is disconnected or powered off. The general-purpose timer has two types of 100ms and 10ms general-purpose timers.
(1) 100ms general-purpose timer (T0~T199) A total of 200 points, of which T192~T199 are sub-programs and interrupt service program-specific timers. This type of timer is a cumulative count of 100ms clock, the set value is 1 ~ 32767, so its timing range is 0.1 ~ 3276.7s.
(2) A total of 46 points for the 10ms general-purpose timer (T200 to T245). This type of timer is a cumulative count of 10ms clock, the set value is 1 ~ 32767, so the timing range is 0.01 ~ 327.67s.
The selection of the timer setting value.
During programming, the timing constant must be set after the timing logic coil that determines the timer unit is using the output OUT command. The timing setting value can be determined directly by the constant K (usually using the decimal number K, K range 0~32767), or can specify an address number with the power failure holding data register D, the number stored in the data register D K (general
Use the decimal number K, the range of K -32768~32767) as its set value.
The timing unit of the timer TO of the Mitsubishi FX2 PLC is 100ms. If the set value is directly constant K, K is set to 100, that is, the timing time T=10S. The timing unit of the timer T35 of the Mitsubishi FX1S PLC is 10 ms. If the set value is stored in the 16-bit power-down hold data register D of the address number 250, and its value K is 50, the timing time T = 0.5S.
When programming with a stepping instruction, first design the state transition diagram and then convert it into a step ladder or instruction list according to the state transition diagram.
The action process is when the step contact S20 is closed, the output relay Y1 coil is turned on. When the X0 closed new state is set (turned on), the step contact S21 is also closed. At this time, the original step contact S20 is automatically reset (opened), which is equivalent to shifting the state of S20 to S21, which is the step conversion effect. State transition process between other state relays, and so on
It can be seen that the state transition diagram is a graph for describing the control process of the sequential control system, which consists of steps, transition conditions, and directed lines. Each state (step) represents an operation that works in sequence and requires a specific action to be completed. The transition (step) of the state is satisfied. Compared with ordinary instruction programming, the use of stepping instructions not only can intuitively represent the flow of sequential operations, but also can reduce the number of instructions and is easy to understand. Each state provides three functions: driving the load, specifying the transition condition, and setting the new state (while the transfer source is automatically reset).
There are four structures for state transition diagrams based on step and step progress:
1. Single sequence. This basic progress is reflected in the sequential activation of the steps, as shown in Figure 5-3.
2. Select the sequence. An active step is followed by several subsequent steps to select the structural form as a sample sequence. As shown in Figure 5-4, each branch of the selection sequence has its own transition condition.
3. Parallel sequence. Parallel sequences are employed when the implementation of the conversion causes several branches to be activated simultaneously. The horizontal portion of the connected line is indicated by a double line. As shown in Figure 5-5.
4. Step repeat and loop sequence. Jumping, repeating, and cyclic sequences are often used in practical systems. This sequence is actually a special form of the selection sequence.
As shown in Figure a, the skip sequence, when step 3 is the active step, if the transition condition X005 is established, skip step 4 and step 5 and directly enter step 6; b is a repeating sequence, and step 6 is the active step. If the conversion condition X004 is not established and X005 is established, return to step 5, and repeat steps 5 and 6 until the conversion condition X004 is established, and proceed to step 7; C is a cyclic sequence, and after the sequence is finished, repeat In this way, it returns directly to the initial step 0, forming a loop of the sequence.