How to Use DM Editor with Keyence PLCs — Step-by-Step Tutorial
Overview
This tutorial shows a concise, practical workflow to install, connect, edit, and test ladder programs using DM Editor for Keyence PLCs. Assumes Windows PC, DM Editor installed, Keyence PLC (KV or KV Nano series) and a USB or Ethernet cable.
1. Preparation
- Requirements: Windows ⁄11, DM Editor installer, Keyence PLC model and CPU manual, USB/ethernet cable, PLC power supply.
- Backup: Copy existing PLC program (if any) to a safe location before changes.
2. Install DM Editor
- Run the DM Editor installer and follow prompts.
- Install any USB drivers prompted by the installer (Keyence USB drivers).
- Launch DM Editor and register or accept license per the installer instructions.
3. Establish Communication with the PLC
- USB connection: Plug USB cable into PC and PLC. In Device Manager confirm driver installed.
- Ethernet: Set PC IP in the same subnet as PLC, or use DHCP if PLC supports it.
In DM Editor:
- Open the “Communication” or “Connection” menu.
- Select connection type (USB/Ethernet).
- For Ethernet, enter PLC IP. For USB, select the detected COM port.
- Click “Connect” and confirm the PLC model shown matches your unit.
4. Read PLC Program (Recommended First Step)
- In DM Editor choose “Read from PLC” (often under File or PLC menu).
- Select program areas: ladder, tags, comments, settings.
- Save the read project locally (File → Save As) with a descriptive name and timestamp.
5. Navigating the DM Editor Interface
- Project tree: Shows program blocks, variables, and I/O.
- Ladder editor: Graphical area to insert contacts, coils, timers, counters.
- Instruction palette: Library of ladder instructions and function blocks.
- Tag/Variable table: Create and edit global/local variables and addresses.
6. Editing Ladder Logic
- Open the ladder block to modify.
- Use the instruction palette to drag/drop or place contacts, coils, timers, counters, and function blocks.
- Assign addresses or tag names to each element.
- Use comments for clarity on complex rungs.
- Validate the logic visually and with any built-in syntax check.
7. Managing Tags and Addresses
- Open the Tag/Variable table.
- Create descriptive tag names (e.g., Motor_Start, Conveyor_Speed).
- Assign correct address types (e.g., X/Y or M/D depending on Keyence series).
- Use consistent naming conventions and comment each tag.
8. Simulation and Offline Testing
- If DM Editor supports simulation:
- Run the simulator for the modified block.
- Step through rungs, toggle inputs, and observe outputs and timers.
- If no simulator, thoroughly review logic and prepare for careful online testing.
9. Writing Changes to PLC (Safe Upload)
- Ensure PLC is in the correct mode (program mode if required by model).
- Use “Write to PLC” or “Download” feature in DM Editor.
- Select only the blocks you changed (to minimize risk).
- Confirm file overwrite prompts and proceed.
- After write completes, verify PLC returned to Run mode if needed.
10. On-PLC Validation
- Gradually enable changes—test with machine stopped or in a safe state.
- Toggle inputs from DM Editor or physical switches and observe outputs.
- Monitor timers, counters, and interlocks for expected behavior.
- Log results and revert quickly if unexpected behavior occurs.
11. Troubleshooting Common Issues
- Cannot connect: Check cables, drivers, IP/subnet, firewall, and PLC power. Restart DM Editor.
- Address mismatch: Verify PLC model address maps and adjust tag types (X/Y/M/D).
- Write fails: Ensure PLC in correct mode, disable protections, and check program size limits.
- Unexpected run behavior: Re-check rungs for latched coils, race conditions, or missing interlocks.
12. Best Practices
- Keep frequent backups: local project files and exported backups with timestamps.
- Use clear tag names and comments for maintainability.
- Modify one functional area at a time and test incrementally.
- Maintain a change log: what changed, why, who changed it, and verification steps.
- Follow safety procedures: lockout/tagout and test in safe conditions.
13. Quick Reference Commands
- Read from PLC → retrieve program and tags.
- Write to PLC → download selected blocks.
- Monitor/Watch → observe runtime values.
- Simulation → offline testing (if available).
If you want, I can generate a printable checklist from this tutorial or a sample tag-naming convention table tailored to your Keyence PLC model.
Leave a Reply