Mitsubishi — 3.2 Explanations on Basic Instructions

3 Basic Instructions Program Example: Ladder diagram: Instruction code: Operation: LD X0 Loading in A contact of X0 OUT Y1 Driving Y1 coil Explanations: When X0 goes from Off to On (rising-edge trigger), PLS instruction will be executed and S will send out pulses for once of 1 scan time. Program Example: Ladder diagram: Instruction code: Operation: LD X0 Loading in A contact of X0 LD M0 Loading in contact A of M0 X0 M0 SET Y0 Y0 latched (On) Timing Diagram: X0 M0 1 scan time Y0 Explanations: When X0 goes from On to Off (falling-edge trigger), PLF instruction will be executed and S will send out pulses for once of 1 scan time.

DVP-PLC Application Manual 3-15 Y1 X1 X1 ORF X1 X1 falling-edge detection in parallel connection Mnemonic Function Program steps 1 E Controllers S EX SS SA SX SC EH2 SV EH3 SV2 PLS Rising-edge output X0 ~ X377 Y0 ~ Y377 M0 ~ M4095 S0 ~ S10 23 T0 ~ T255 C0 ~ C255 D0 ~ D9999 Operand -   - - - - Controllers S EX SS SA SX SC EH2 SV EH3 SV2 PLS M0 PLS M0 M0 rising-edge output SET Y0 Mnemonic Function Program steps Controllers ES EX SS SA SX SC EH2 SV EH3 SV2 PLF Falling-edge output 1 X0 ~ X377 Y0 ~ Y377 M0 ~ M4095 S0 ~ S10 23 T0 ~ T255 C0 ~ C255 D0 ~ D9999 Operand -   - - - - Controllers EX SS SA SX SC EH2 SV EH3 SV2