How-to
ATV312 Modbus RTU control word and register setup for a PLC
Short answer
Set the ATV312 serial link to address 1, baud 9.6, framing 8E1 with a 3.0 s comms timer, assign Modbus as command and reference channel (LAC=L3, CHCF=SEP, Fr1=Fr2=Cd1=Cd2=Mbd), then write control word 8501 (2135 hex) and reference 8502 from the PLC: enable with 6, fault reset 128, forward 15, reverse 2063, stop 4111; read frequency at 3202 and current at 3204.

On this page
To run an ATV312 from a PLC over Modbus RTU, set the drive's serial link in the COM menu, hand command and reference to Modbus in the CtL menu, then write the control word and the speed reference to two holding registers and read the monitors back. The control word is a fixed list of values — 6 enables operation, 128 resets a fault, 15 runs forward, 2063 runs reverse, 4111 stops — and the drive answers reads with its output frequency and current, which proves the link before the first write. This page gives the ATV312 menu parameters, the register map, and the write order from power-up to a running motor. The smaller ATV12 on a TM200 PLC follows the same channel pattern; Control an ATV12 drive from a TM200 PLC over Modbus RTU covers that pairing.
Set the serial link in the COM menu #
The COM menu owns the serial link. Set the four parameters below, then make the PLC's serial port match them exactly — one mismatched bit and nothing on the line answers.
| Parameter | Setting | Meaning |
|---|---|---|
| Add | 1 | Modbus slave address; give each drive on a shared line its own |
| tbr | 9.6 | baud-rate setting, 9600 bit/s |
| tF0 | 8E1 | framing: 8 data bits, even parity, 1 stop bit |
| tt0 | 3.0 | communication-error timer in seconds; no valid frame for 3.0 s and the drive declares a Modbus fault |
On a shared RS-485 line every slave takes the same baud and framing, and mixed-slave lines carry their own traps — Two different brand VFDs on one Modbus RTU network works through them.
Assign Modbus as command and reference channel in the CtL menu #
A serial link that cannot command the drive is only a monitor. The CtL menu decides who owns run, direction and speed. Set all four channel parameters to Mbd so the serial link holds both roles:
| Parameter | Setting | Meaning |
|---|---|---|
| LAC | L3 | the access level the channel settings sit behind |
| CHCF | SEP | command and reference channels configured separately |
| Fr1 | Mbd | reference channel 1 taken from Modbus |
| Fr2 | Mbd | reference channel 2 taken from Modbus |
| Cd1 | Mbd | command channel 1 taken from Modbus |
| Cd2 | Mbd | command channel 2 taken from Modbus |
With CHCF = SEP and both channels on Mbd, run, direction and speed come from the serial link alone. The master side of that link depends on your PLC; Configure a VFD for Modbus RTU control from an S7-1200 PLC shows one master setup end to end.
Write the control word at 8501 #
These writes run the motor the moment the run value lands — be sure the machine can take a start before the first one.
Commands go to a single holding register: 8501 decimal, 2135 hex.
| Write (decimal) | Hex | Action |
|---|---|---|
| 6 | 0006 | enable operation, the first write after power-up |
| 7 | 0007 | ready-to-run state |
| 15 | 000F | forward run |
| 128 | 0080 | fault reset, bit 7 of the word |
| 2063 | 080F | reverse run |
| 4111 | 100F | stop |
On the first run after power-up the manufacturer's FAQ sequences the writes 6, then 7, then 000F, following the drive's status chart. Reverse and stop build on the forward word one bit at a time: 2063 − 15 = 2048 is bit 11, 4111 − 15 = 4096 is bit 12, so direction and stop are one-write changes from the forward state.
Speed reference and monitor registers #
The frequency reference is 8502 (2136 hex); the drive's Modbus communication manual, document BBV52816, defines that register's scaling, so take the hertz scale from it. When you want a reference whose scale is stated outright, the rpm reference sits at 8602: 1 unit = 1 rpm, active when bit 9 of CMI is 0. Two monitors confirm everything: read output frequency at 3202 (C82 hex) and output current at 3204 (C84 hex), with the first frequency read done before any write and compared against the drive's own display — if the value is one register off, your master counts registers from zero and needs that offset applied.
| Register (decimal) | Hex | Contents |
|---|---|---|
| 8502 | 2136 | frequency reference |
| 8602 | 219A | rpm speed reference, 1 unit = 1 rpm |
| 3202 | C82 | output frequency monitor |
| 3204 | C84 | output current monitor |
All four are ordinary holding registers: read with function 03, write with 06 or 16, whichever block your PLC's Modbus instruction set exposes.
Worked example: power-up to a running motor #
One pass on one drive, arithmetic shown:
- Match the master port to the COM table: slave address 1, 9600 bit/s, 8E1.
- Read the output-frequency monitor and compare it with the drive display; a match locks the offset convention before anything moves.
- Write 6 (0006 hex) to the control word to enable operation.
- Write 7 (0007 hex) to reach the ready-to-run state.
- Write 1500 to the rpm register: scale 1 unit = 1 rpm, so the request is 1500 rpm; 1500 decimal is 05DC hex.
- Write 15 (000F hex) as the run command; the motor accelerates toward the reference.
- Check the speed with motor arithmetic: a 4-pole motor turns synchronous speed n = 120 × f ÷ p, so 120 × 50.0 Hz ÷ 4 = 1500 rpm; the drive settles near 50 Hz output and the frequency monitor should sit just under it once slip takes its share.
- Reverse without touching the reference: 2048 + 15 = 2063 to the control word.
- Stop with 4096 + 15 = 4111; the frequency monitor falls to zero and the current monitor settles at the unloaded motor's magnetizing current.
When writes do nothing #
- No answer at all: framing. Even parity is the usual culprit — recheck baud and framing on both ends before anything else.
- Reads work, writes do nothing: the command channel is still not on Modbus. Recheck CHCF = SEP and both Cd settings; sequencing matters too, because run bits are ignored until the drive has been enabled — Why your VFD ignores Modbus RTU start commands from a PLC separates routing causes from state causes.
- Runs, then control goes flaky on a busy line: monitor reads crowding out control writes on one port — Why a Modbus RTU read and write on one port drops VFD control explains the starvation and the fix.
- Every register reads at the wrong number: the master's numbering offset, covered in the first question below.
Configured this way, the ATV312 takes run, direction and speed from the PLC over RTU alone: the COM table sets the link, the CtL table hands it command and reference, register 8501 carries the state machine, 8502 or the rpm register carries speed, and the two monitors prove every step.
Questions asked
Why does my PLC show the ATV312 registers at different numbers?
Modbus masters disagree on register numbering: some add the Modicon prefix, so 8501 appears as 408501, and zero-based masters call the same register 8500. The drive's map itself does not change. Prove your master's convention with a harmless read of the output-frequency monitor 3202 and compare the value against the drive's display before you write anything.
What happens on the ATV312 if the Modbus link drops?
The drive times the link with the communication-error timer tt0, 3.0 s here: no valid frame for that long and the drive declares a Modbus communication fault. That timer sets detection only, not the reaction. Configure the drive's fault response deliberately before running unattended, and keep a hardwired stop path that never depends on the serial link.
Can I command an ATV312 speed reference in rpm instead of hertz?
Yes. The rpm reference sits at register 8602 with a scale of 1 unit = 1 rpm, active when bit 9 of the CMI parameter is 0. Use it when you want the value on the wire to equal shaft speed directly; the hertz reference at 8502 follows the scaling defined in the drive's Modbus manual, document BBV52816.
Does writing 128 to the control word clear the fault for good?
No. 128 sets bit 7 of the control word, which resets the drive's fault latch; the underlying cause stays. A drive that tripped on overload trips again the moment it restarts into the same load, so read the fault state, remove the cause, then reset and resume the run sequence.

