Work / Delta-WPL-Bridge
Delta-WPL-Bridge: Delta-WPL-Bridge — program Delta DVP PLCs without WPLSoft
Delta-WPL-Bridge: command-line programming for Delta DVP PLCs without WPLSoft. Builds .dvp ladder files, downloads and uploads over Modbus (overview)
What is it made of?
wplsoft · delta-plc · plc · plc-programming · industrial-automation · delta · dvp · ladder-logic
Source on GitHub ↗ · Need one like it? →
How does it work?
Command-line programming for Delta DVP PLCs, without WPLSoft. WPLSoft is the Windows program Delta ships for the DVP series, and it has no command line. Delta-WPL-Bridge reads and writes WPLSoft's own .dvp program files and talks to DVP PLCs and to Delta's PLC simulator directly. You can write a program as text, turn it into a WPLSoft ladder file, download it, test it and read it back, all from a terminal. Every step is one command, so an AI agent such as Claude Code can do the same.
Source lives in a private repository. This repo is a public overview.
What it covers
It turns an instruction list into a WPLSoft 2.x .dvp file, with device comments and with the ladder drawn the way WPLSoft draws it, and it reads .dvp files back as instructions and ladder. The encoder handles contacts and coils with rising and falling edges, compare contacts, branches (ANB, ORB, MPS, MRD, MPP), timers, counters, SET and RST, E and F index registers, and the API instructions in WPLSoft's own instruction table, such as MOV, DMOV, ADD and ZRST. An instruction it can't encode stops the build with its line number, and no file is written.
On the PLC side it downloads with read-back verification, uploads into a ladder file, switches between RUN and STOP, and reads and writes X, Y, M, S, T, C and D devices. It speaks Modbus ASCII, 9600 baud 7E1 by default, as WPLSoft does. The same commands work with DVPSimulator, the PLC simulator that ships with WPLSoft 2.52.
A short session
$ python3 dvp.py build start_stop_estop.il -o start_stop_estop.dvp
start_stop_estop.dvp: model 2, version 216, 9 steps, checksum ok
0 LDP X0
3 ANI M1002
4 OR Y0
5 AND X1
6 AND X2
7 OUT Y0
8 END
ladder (rung starts: row 0 = step 0, row 2 = step 8)
0 [PX0] [/M1002] [X1] [X2] ----- ----- ----- ----- ----- ----- ----- (Y0)
1 [Y0] ----- | . . . . . . . . .
2 ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- [END
$ python3 dvp.py download start_stop_estop.dvp sim
the PLC is in RUN: add --stop to stop it for the download (this stops the machine)
$ python3 dvp.py download start_stop_estop.dvp sim --stop --run
PLC was in RUN: stopped it
downloaded and verified 9 steps
PLCThe instruction list for that program, a VFD start, stop and E-stop:
#X0 START PB (NO)
#X1 STOP PB (NC)
#X2 E-STOP (NC)
#Y0 VFD RUN (FWD)
LDP X0 ; START, rising edge only
ANI M1002 ; not on the first scan after power-up
OR Y0 ; seal-in
AND X1 ; STOP healthy (NC)
AND X2 ; E-STOP healthy (NC)
OUT Y0 ; VFD run
ENDThe E-STOP in this example is a control stop. A real emergency stop also needs a hardwired safety circuit, such as the drive's STO input or a safety relay.
Commands
- build PROGRAM.il -o OUT.dvp: instruction list to WPLSoft ladder file (--model SV or SV2)
- dump FILE.dvp, il FILE.dvp: a .dvp file as instructions and ladder, or as an instruction list only
- check DIR...: rebuild every WPLSoft file under DIR from its instructions and compare byte for byte
- download FILE LINK: write a program to the PLC, read it back to verify; --stop, --run
- upload LINK -o OUT.dvp: read the program from the PLC into a ladder file
- plc LINK status, run, stop: RUN/STOP state, PLC ID, password flag
- plc LINK get D0 Y0, set M10=1: read and write devices
A LINK is one of:
- sim://HOST:PORT for Delta's simulator, which WPLSoft starts on TCP port 10000 (plain sim means 127.0.0.1:10000)
- serial:/dev/cu.usbserial-X for the PLC's programming port through a USB cable
- ssh://PC/COM3 for a COM port on a Windows PC, through a one-shot PowerShell relay
Safety
- A download refuses a PLC that is in RUN unless --stop is given, because stopping the PLC stops the machine.
- A password-protected PLC is refused before anything is changed, so it is never left stopped.
- Every download is read back and compared before the PLC goes to RUN.
- The SSH relay opens the COM port for one batch of requests and closes it right after.
How it was checked
- Running check over 257 .dvp files from real projects rebuilt every rung from its instruction list and compared it with the ladder WPLSoft had saved. 3,492 of 3,493 rungs came out identical byte for byte, from files saved for five WPLSoft model codes. The one that differs is in a file whose saved ladder doesn't match its own instruction list. Ten more rungs use instruction words, or in one case a rung shape, that the tool doesn't handle yet, and check lists them. Two files that aren't WPLSoft 2.x programs were skipped, and one that decodes to invalid instructions was set aside.
- In Delta's DVPSimulator, two programs went through download, verification and upload, and both ran correctly. The start/stop/E-stop program passed 15 behaviour checks, among them STOP, E-STOP, a broken STOP wire, and START held while the PLC goes to RUN. A 68-step test program passed 17 checks covering a timer, a counter, MOV and DMOV, a compare contact, MPS/MPP branches, ORB, ANB, and ANDP with ADD.
- A self-test with a fake PLC covers download, the refusal cases and upload without any hardware.
Status and limits
- It hasn't been run against a physical DVP PLC yet. The serial link has only been tested against a fake PLC on a pseudo-terminal.
- No file it wrote has been opened in the WPLSoft editor yet. So far the evidence is the byte-for-byte match with WPLSoft's own files.
- It writes files for two families: SV, EH and EH2 (WPLSoft model code 2), and SV2 and EH3 (model code 7). Each other DVP model needs an empty template file saved from WPLSoft.
- Programs are limited to 15,872 steps, since WPLSoft switches to a different transfer function above that.
- Direct serial needs macOS or Linux. A COM port on a Windows PC is reached through the SSH relay.
- Only the program is transferred. Device comments, retentive ranges, passwords and the PLC clock stay with WPLSoft.
- ISPSoft .isp projects aren't covered.
Python 3, standard library only.
Delta-WPL-Bridge is proprietary; the source is not public. It is not affiliated with or endorsed by Delta Electronics, Inc. Delta, DVP, WPLSoft and ISPSoft are trademarks of Delta Electronics.
What do people ask about it?
Can a Delta DVP PLC be programmed without WPLSoft?
Yes, with Delta-WPL-Bridge. WPLSoft, the Windows program Delta ships for the DVP series, has no command line. Delta-WPL-Bridge reads and writes WPLSoft's own .dvp program files and talks to DVP PLCs and to Delta's simulator directly. You write the program as an instruction list, turn it into a WPLSoft ladder file with its device comments, download it, test it and read it back, all from a terminal.
Can Claude Code or another AI agent program a Delta PLC?
Yes. Every step is one command, so an agent such as Claude Code can build a program, download it, switch the PLC between RUN and STOP, read and write X, Y, M, S, T, C and D devices, and upload the program again. An instruction the tool cannot encode stops the build with its line number, and no file is written.
Which Delta PLC models and instructions does it support?
It writes files for two families: SV, EH and EH2, and SV2 and EH3. Each other DVP model needs an empty template file saved from WPLSoft. The encoder handles contacts and coils with rising and falling edges, compare contacts, branches (ANB, ORB, MPS, MRD, MPP), timers, counters, SET and RST, the E and F index registers, and the API instructions in WPLSoft's own table, such as MOV, DMOV, ADD and ZRST. Programs are limited to 15,872 steps.
How does it connect to the PLC?
It speaks Modbus ASCII at 9600 baud, 7E1, as WPLSoft does. A link is the PLC's programming port through a USB cable, a COM port on a Windows PC reached over SSH, or DVPSimulator, the simulator that ships with WPLSoft 2.52 and listens on TCP port 10000. Direct serial needs macOS or Linux.
Is a download safe on a running machine?
A download refuses a PLC that is in RUN unless you add the stop option, because stopping the PLC stops the machine. A password-protected PLC is refused before anything is changed, so it is never left stopped. Every download is read back and compared before the PLC goes to RUN.
Has it been tested on a real Delta PLC?
Not yet. It has not been run against a physical DVP PLC, and no file it wrote has been opened in the WPLSoft editor so far. The evidence is a byte-for-byte match with WPLSoft's own files: 3,492 of 3,493 rungs across 257 .dvp files from real projects came out identical. In Delta's simulator, a start, stop and E-stop program passed 15 behaviour checks and a 68-step test program passed 17.
Does it work with ISPSoft?
No. ISPSoft .isp projects are not covered. Only the program is transferred: device comments, retentive ranges, passwords and the PLC clock stay with WPLSoft. Delta-WPL-Bridge is proprietary, written in Python 3 with the standard library only, and is not affiliated with Delta Electronics.
What else did I build?
GXBridge-MCP
Control Mitsubishi GX Works3 and your PLC with AI — an MCP server for any agent GX Works3 · Mitsubishi PLC
TIA-Portal-MCP
TIA Portal MCP server: control Siemens TIA Portal, STEP 7 and S7-1200/S7-1500 PLCs with AI (Claude, Cursor, any MCP client). Write LAD/SCL PLC code, configure hardware and WinCC HMI, compile, test in PLCSIM and download. TIA Portal · Siemens Plc
eplanbridge
Drive EPLAN Pro Panel 2022.0.3 from outside the application — and build a 6-axis robot-arm control schematic with it. EPLAN Pro Panel · EPLAN