Migrating Logic to Keyence PLCs Using DM Editor: Step-by-Step
Migrating logic to Keyence PLCs with DM Editor can be straightforward if you follow a clear, tested process. This guide provides a concise, prescriptive workflow: preparation, export/import, mapping, verification, and deployment. Assumes you’re using DM Editor (Keyence’s programming environment) and have basic familiarity with PLC concepts.
Prerequisites
- DM Editor installed and licensed on your PC.
- Latest Keyence PLC firmware compatible with your DM Editor version.
- Backup copies of the source project and current PLC program.
- USB/Ethernet connection cables and drivers configured.
- A change-control window or test environment to avoid production downtime.
1. Prepare source and target environments
- Inventory source logic: List program files, global variables, data types, I/O mapping, timers/counters, and external device references.
- Confirm compatibility: Ensure source language constructs (e.g., function blocks, structured text) are supported by DM Editor and the target Keyence model.
- Document I/O changes: Create a table mapping source I/O addresses to Keyence I/O (digital/analog, modules, channels).
- Backup: Export/archive the source project and take a full backup of the target PLC’s existing program.
2. Create new project in DM Editor
- Start a new project for the exact Keyence PLC model.
- Set CPU and rack configuration: Match power rails, I/O modules, expansion slots, and network settings.
- Define global types and structures: Recreate or import user data types, arrays, and UDTs used by the source logic.
3. Import or translate logic
Option A — Direct import (if supported):
- Use DM Editor’s import tools to bring in source ladder, structured text, or function blocks. Review import logs for unsupported instructions.
Option B — Manual translation:
- Translate ladder/ST blocks into DM Editor equivalents. Preserve labels and comments.
- Recreate function blocks: Implement custom FBs as reusable blocks.
- Map timers/counters: Match resolution and preset ranges; adjust for differences between platforms.
- Handle special instructions: Replace unsupported proprietary instructions with equivalent sequences (document replacements).
4. Map variables and I/O
- Apply I/O mapping table to assign each logical input/output to Keyence addresses.
- Convert variable naming to a consistent scheme; use descriptive names and comments.
- Set data type conversions and scaling for analog signals (apply calibration offsets and scale factors).
5. Implement communications and HMI
- Configure network settings: IP addresses, subnet, and gateway.
- Set up protocol drivers: Modbus/TCP, EtherNet/IP, or other required drivers in DM Editor.
- Recreate HMI screens or mappings if the HMI communicates with the PLC; verify tag addresses.
6. Simulate and offline test
- Use DM Editor simulation (if available) to run logic without hardware.
- Unit test modules: Test individual function blocks and routines with test vectors.
- Static checks: Run compile-time checks and review warnings/errors.
7. Field test on a development PLC or replica
- Deploy to a non-production PLC mirroring the target system.
- Perform I/O validation: Manually toggle inputs and observe outputs; verify analog scaling.
- Test edge cases: Ensure timers, counters, error handling, and interlocks behave correctly.
- Record results and update documentation.
8. Prepare deployment plan
- Schedule downtime and notify stakeholders.
- Checklist: backups (source & target), rollback procedure, required personnel, and test script.
- Safety: ensure emergency stop and safety circuits remain functional and verified.
9. Deploy to production PLC
- Upload program to the production PLC during the scheduled window.
- Perform smoke tests: Basic machine cycle, safety interlocks, and critical outputs.
- Run full validation using the test script; sign off each step.
10. Post-deployment verification and documentation
- Monitor system for several production cycles for unexpected behavior.
- Log changes and incidents.
- Update operation & maintenance docs with new logic diagrams, variable lists, and contact points.
- Archive final project and verify backups.
Troubleshooting checklist (common issues)
- Mismatched data types: Confirm integer/float sizes and endian differences.
- I/O addressing errors: Re-check mapping table and module slot assignments.
- Timing differences: Adjust timer prescalers or replace tight loops with safer state machines.
- Unsupported instructions: Implement functionally equivalent logic and document changes.
- Network issues: Verify IP, subnet, and firewall settings.
Quick verification test script (minimal)
- Verify power and CPU status LED.
- Toggle each digital input and confirm corresponding output/action.
- Sweep analog inputs and verify scaled output values.
- Trigger an alarm and confirm HMI/logging behavior.
- Run a full production cycle and monitor for faults.
Follow this sequence to migrate reliably and minimize downtime. If you want, I can produce a project-specific mapping table or a downloadable checklist for your exact source and Keyence model—tell me the source PLC type and a brief I/O list.
Leave a Reply