How to correctly use Mitsubishi PLC application instructions to complete the logo - Database & Sql Blog Articles

Manufacturers supply LED lamp bead SMD LED 0805 yellow light super bright indicator light dedicated
SMD aluminum electrolytic capacitor

During my experience using Mitsubishi PLC programming, I faced a couple of issues that I want to share with you. These insights might help you avoid some common mistakes.

First, I tried to use the DRVI positioning command with SFC. My initial idea was to use the pulse output triggered by the falling edge of M8147. However, I found that the PLC only output the pulse when the next positioning command was executed. After investigating, I realized that M8029 wasn't set after resetting M8147, which caused the PLC to think the first positioning instruction hadn't completed. As a result, it ignored any subsequent commands. So, if you're using flags like M8029 in SFC, make sure they are properly set before moving to the next step.

Second, when working with the FX3U-232BD communication module, I set M8122 inside a subroutine to start data transmission. But the issue was that M8122 didn’t reset automatically, so the transmission only occurred once. By switching to a periodic scan mode instead, the problem was resolved. This shows that using flags in subroutines can lead to unexpected behavior, and it's better to handle them in the main program flow.

In summary: When working with application commands and their completion flags (like M8029) in SFC, always wait for the flag to move to the next step. And never use such flags inside subroutines—this can cause logic errors. Keep this in mind to prevent unnecessary debugging time!

Laser Instrument Shell Packaging

Laser Instrument Shell Packaging,Gtms Enclosure With Gold Plating,Glass To Metal Sealed Enclosure With Gold Plate,Glass To Metal Sealed Enclosure Terminal

Shenzhen Capitol Micro-Electronics Co.,LTD , https://www.capitolgtms.com