Mitsubishi FX Series plc Basic Logic Instructions
Instruction fetch and output (LD/LDI/LDP/LDF/OUT) (1) LD (instruction fetch) A command that connects a normally open contact to the left bus. This is used for every logical line that starts with a normally open contact. instruction.
(2) LDI (inverted instruction) A normally closed contact is connected to the left bus, and each logical line that starts with a normally closed contact uses this command.
(3) LDP (rising edge command) The rising edge detection command of the normally open contact connected to the left bus bar turns ON for one scan cycle only at the rising edge (from OFF to ON) of the specified bit element.
(4) LDF (Falling edge instruction) The falling edge detection instruction of the normally closed contact connected to the left bus.
(5) OUT (output command) An instruction to drive a coil, also called an output command.
Instructions for use of instruction fetch and output instructions: 1) LD and LDI instructions can be used to input the contacts connected to the left bus, and can also be combined with the ANB and ORB instructions to implement block logic operations.
2) The LDP and LDF instructions maintain the connection of one scan cycle only when the corresponding device is active.
3) The target elements of LD, LDI, LDP, and LDF instructions are X, Y, M, T, C, S;
4) The OUT instruction can be used several times in succession (corresponding to coil in parallel). For timers and counters, a constant K or data register should be set after the OUT instruction.
5) The OUT instruction target element is Y, M, T, C, and S, but it cannot be used for X. AND/ANI/ANDP/ANDF (1) AND (with instruction) A normally open contact is connected in series to complete the logical AND operation. (2) ANI (with anti-instruction) A normally-closed contact is connected in series to complete the logical AND operation. (3) The ANDP rising edge detects the serial connection command. (4) The ANDF falling edge detects the serial connection command.
Instructions for use of the contact serial connection instruction: 1) AND, ANI, ANDP, and ANDF refer to instructions that connect a single contact in series. There is no limit to the number of serial connections, and it can be used repeatedly. 2) The element elements of AND, ANI, ANDP, and ANDF are X, Y, M, T, C, and S. 3) After the OUT M101 instruction, the Y4 is driven by the contact of T1 as a continuous output.
Contact parallel instructions (OR/ORI/ORP/ORF) (1) OR (or instruction) Used for the parallel connection of a single normally open contact to implement a logical OR operation. (2) ORI (or non-instruction) Parallel connection for a single normally closed contact to implement a logical NOR operation. (3) ORP rising edge detection parallel connection instruction. (4) The ORF falling edge detects the parallel connection command.
Instructions for using the parallel contact instructions: 1) The OR, ORI, ORP, and ORF instructions all refer to the parallel connection of a single contact. The left end of the parallel contact is connected to the LD, LDI, LDP, or LPF. The right end corresponds to the previous instruction. The right end of the point is connected. The number of continuous use of the contact parallel instruction is not limited; 2) The target elements of the OR, ORI, ORP, and ORF instructions are X, Y, M, T, C, and S.
Block Operation Instructions (ORB / ANB) (1) ORB (Block or Instruction) is used for parallel connection between circuits in which two or more contacts are connected in series.
Instructions for use of the ORB instruction: 1) When several series circuit blocks are connected in parallel, each series circuit block should start with an LD or LDI instruction.
2) There are multiple circuit blocks connected in parallel. If ORB instructions are used for each circuit block, the number of parallel circuit blocks is not limited;
3) The ORB instruction can also be used continuously. However, this procedure is not recommended. The number of LD or LDI instructions must not be used more than 8 times, that is, the ORB can only be used continuously for less than 8 times.
(2) ANB (Block and Instruction) A series connection between circuits in which two or more contacts are connected in parallel.
Instructions for using the ANB instruction: 1) When the parallel circuit blocks are connected in series, the start of the parallel circuit block is to use LD or LDI instructions;
2) When there are multiple parallel circuit block connections in series with the previous one, there is no limit to the number of times the ANB instruction can be used. The ANB can also be used continuously, but as with the ORB, the number of uses is less than 8 times.
Set/Reset (SET/RST) (1) SET (Set) This is used to set and hold the target element to be operated.
(2) RST (reset command) Resets the target element to be operated and remains cleared. The use of the SET and RST commands, when X0 is normally ON, Y0 is turned ON and remains in this state. Even if X0 is turned off, the ON state of Y0 remains unchanged; only when X1 is normally open, Y0 is ON. Turns OFF and holds. Even if X1 is normally open, Y0 is still OFF.
Instructions for using the SET and RST instructions: 1) The target components of the SET instruction are Y, M, and S. The target components of the RST instruction are Y, M, S, T, C, D, V, and Z. The RST instruction is often used to clear the contents of D, Z, and V. It is also used to reset the accumulation timer and counter.
2) For the same target element, SET, RST can be used multiple times, the order can also be arbitrary, but the final performer is valid.
Differentiation Instruction (PLS/PLF) (1) PLS (Rising Edge Derivative Instruction) Generates a pulse output for one scan cycle on the rising edge of the input signal
(2) PLF (falling edge differential instruction) Generates a scan cycle pulse output on the falling edge of the input signal. The edge of the signal is detected by the differential instruction, and the state of Y0 is controlled by the set and reset commands.
Instructions for using the PLS and PLF instructions: 1) The target elements of the PLS and PLF instructions are Y and M;
2) When using PLS, the target element is ON only during one scan cycle after the drive input is ON, and M0 is ON only during a scan cycle when the normally open contact of X0 is turned OFF to ON; it is only used when the PLF instruction is used. The falling edge of the input signal is driven and the rest is the same as the PLS. Master Control Instructions (MC/MCR)
1) MC (master instruction) Connection for common series contact. After MC is executed, the left bus moves behind the MC contacts.
2) MCR (master reset command) This is the MC instruction reset command that uses the MCR instruction to restore the original left bus position.
This is often the case in programming where multiple coils are simultaneously controlled by one or a group of contacts. If the same contact is wired in the control circuit of each coil, many memory cells will be occupied and the master control instruction will be used. Can solve this problem.
MC, MCR instructions
Using MC N0 M100 to achieve the right shift of the left bus, so that Y0, Y1 are under the control of X0, where N0 represents the nesting level, there is no limit to the number of uses of N0 in the non-nested structure; use the MCR N0 to restore the original left bus status. If X0 is disconnected, the instruction between MC and MCR will be skipped downward.
Instructions for use of MC and MCR instructions: 1) The target components of MC and MCR instructions are Y and M, but special auxiliary relays cannot be used. MC occupies 3 program steps, and MCR occupies 2 program steps;
2) The main control contact is vertical to the general contact in the ladder diagram. The master contact is a normally open contact connected to the left bus and is the master switch that controls a group of circuits. The contacts connected to the master contact must use LD or LDI instructions.
3) When the input contact of the MC instruction is turned off, the integrated timers, counters, and components driven by the reset/set instruction within the MC and MCR remain in their previous states. Non-integrated timers and counters, which are driven by the OUT instruction, are reset. When X0 is turned OFF, Y0 and Y1 are turned OFF.
4) If MC instruction is used in an MC instruction area, it is called nested. The number of nesting levels is up to 8 and the number is increased in the order of N0→N1→N2→N3→N4→N5→N6→N7. The return of each level is reset from the nesting level where the number is large, using the corresponding MCR instruction.
The stack instruction (MPS/MRD/MPP) stack instruction is a new basic instruction in the FX series for multiple output circuits, facilitating programming. There are 11 memory units in the FX series PLC. They are specifically designed to store intermediate results of program operations and are called stack memory. (1) MPS (Increment instruction) The operation result is sent to the first segment of the stack memory, and the previously input data is sequentially moved to the next segment of the stack. (2) MRD (read stack instruction) The first piece of data (last pushed data) of the stack memory is read out and the data is continuously stored in the first stage of the stack memory, and the data in the stack does not move. (3) MPP (push instruction) The first piece of data in the stack memory (last pushed data) is read out and the data disappears from the stack, while the other data in the stack is sequentially shifted up.
Instructions for use of the stack instruction: 1) The stack instruction has no target element;
2) MPS and MPP must be paired;
3) Since there are only 11 stack storage units, the stack level is up to 11 levels. Logical Reverse, Null Operation and End Instructions (INV/NOP/END)
1) INV (anti-instruction) After the instruction is executed, the original operation result is reversed. The use of anti-instruction is shown in Figure 10. If X0 is off, Y0 is ON, otherwise Y0 is OFF. When using it, it should be noted that the INV cannot be connected to the bus as the LD, LDI, LDP, and LDF of the instruction list, and cannot be used alone as the OR, ORI, ORP, or ORF instructions in the instruction list.
2) NOP (No Operation Instruction) Does not perform operation, but occupies one program step. Nothing is done when executing a NOP. Sometimes NOP instructions can be used to short some contacts or overwrite them with NOP instructions. When the PLC executes the clear user memory operation, the contents of the user memory are all changed to no-operation instructions.
3) END (end instruction) Indicates the end of the program. If the program does not write the END instruction at the end, the PLC will execute from the first step of the user program memory to the last step no matter how long the actual user program is. If there is an END instruction, when the scan reaches END, the execution program will end. Reduce the scan cycle. During program debugging, several END instructions can be inserted in the program to divide the program into several segments. After determining that the previous program segment is correct, the END instruction is deleted in sequence until the end of debugging.
FX series PLC stepping instructions Stepping Instructions (STL/RET) Stepping instructions are designed specifically for sequence control. Many control processes in the field of industrial control can be implemented in a sequential control manner. Using a stepping instruction to achieve sequential control is both convenient to implement and easy to read and modify.
There are two stepping instructions in FX2N: STL (stepping contact instruction) and RET (stepping return instruction).
The STL and RET instructions only have the step function in conjunction with the state machine S. If STL S200 represents the state normally open contact, called the STL contact, its symbol in the ladder diagram is -|| ||- and it has no normally closed contact. We use each state register S to record a step. If the STL S200 is valid (ON), we enter the step represented by the S200 (similar to the main switch of this step), start to perform the work of this phase, and judge the entry. The one-step condition is satisfied. Once the end signal is ON, S200 is turned off and the process proceeds to step S201. The RET instruction is used to reset the STL instruction. After RET is executed, it will return to the bus and exit the stepping state.
2. State Transition Diagram A sequence control process can be divided into several phases, also known as steps or states, each with different actions. When the transition condition between two adjacent states is satisfied, the conversion will be implemented, that is, the transition from the previous state to the next state. We use state transition diagrams (function maps) to describe this sequential control process. Each state is recorded with the state S, and X is the conversion condition. For example, when X1 is ON, the system changes from the S20 state to the S21 state. Each step in the state transition diagram contains three contents: the contents of this step driver, the transition conditions, and the conversion destination of the instruction.
The step drives Y0. When X1 is valid, the system changes from the S20 state to the S21 state. X1 is the conversion condition and the conversion target is the S21 step.
3. Instructions for use of stepping instructions 1) The STL contact is a normally open contact connected to the left bus bar. When a STL contact is connected, the corresponding state is an active step;
2) The contacts connected to the STL contacts apply LD or LDI commands and return to the left busbar only after RET is completed
3) STL contacts can be driven directly or through other contacts to drive the coils of Y, M, S, T and other components;
4) Since the PLC only executes the circuit blocks corresponding to the active step, the STL instruction allows double coil output (sequence program can drive the same coil multiple times in different steps);
5) MC and MCR instructions cannot be used in circuit blocks driven by STL contacts, but CJ instructions can be used;
6) STL instructions cannot be used in interrupt programs and subroutines.
The printer cable is the cable used to connect the printer and the computer. Generally divided into two types: USB printing cable and parallel port printing cable.
Generally, one side is a USB port to connect to a computer, and the other side is a PIN5 port to connect to a printer. The transmission speed is fast, and it can be hot-swapped. After connecting, the printer driver must be installed to print from the computer normally.
Parallel port print line:
Refers to the printing line that uses parallel transmission to transmit data. Because this interface is easily damaged and the transmission speed is slow, it is basically replaced by the USB interface.
Serial print line:
The serial port, also known as the serial communication interface (usually referred to as the COM interface), is an extended interface using serial communication.
A printer is one of the output devices of a computer and is used to print the results of computer processing on related media. There are three indicators to measure the quality of a printer: print resolution, print speed and noise. There are many types of printers. According to whether the printing element has a hitting action on the paper, it is divided into impact printers and non-impact printers. According to the structure of printing characters, it is divided into full-shaped character printers and dot-matrix character printers. According to the way a line of words is formed on paper, there are serial printers and line printers. According to the technology used, it is divided into cylindrical, spherical, inkjet, thermal, laser, electrostatic, magnetic, light-emitting diode and other printers.
In general, the wiring harness industry is a good industry, because Wire harnesses are widely used in many fields, whether it is industrial, medical, military, communications/automotive, or computers, machines, etc. The benefits of the company are very general. How to position, what kind of wiring harness to make, and how to provide services with the whole machine, all test the ability of the factory. For this reason, Suzhou Kable-X has formulated a set of implementation methods for fast delivery and good after-sales service.
In addition to Printer Wiring Harness, and Elevator Unit Wire Harness, we also provide Medical Power Wire Harness and Vehicle Cable Assembly for these companies.
Printer Wiring Harness,3D Printer Wiring Harness,Printer Cable,Usb Cord For Printer
Kable-X Technology (Suzhou) Co., Ltd , https://www.kable-x-tech.com