How-to
Connect 11 CHF100A drives to an FX2N over Modbus RTU
Short answer
The FX2N has no Modbus instruction, so the RS485-BD runs the non-protocol RS instruction (FNC 80): the ladder builds each RTU frame, sends it on M8122 and collects the reply on M8123, polling 11 uniquely addressed drives in turn. Set D8120 to 8E1 at 19200 bit/s with M8161 on, load the CRC16 low byte first, and give every transaction a 100 ms timeout.
On this page
- Can the FX2N be the Modbus RTU master for 11 CHF100A drives?
- How do you wire and address the RS-485 bus?
- What goes in D8120 and why must M8161 be on?
- How do you build and send a Modbus RTU frame with the RS instruction?
- How do you poll 11 drives without overlapping requests?
- Example: how long does one full poll of 11 drives take at 19200 bit/s?
- How do you bring the bus up one drive at a time?
- Why does one drive answer while ten stay silent?
- Questions asked
You connect the 11 CHF100A drives to the FX2N as one RS-485 daisy chain through the RS485-BD board, with the PLC as the only Modbus RTU master on the pair. The FX2N has no Modbus instruction — ADPRW (FNC 276) belongs to later FX families — so the ladder builds every RTU frame itself with the RS instruction (FNC 80), sends it on M8122 and collects the reply on M8123. Set D8120 to 8 data bits, even parity, 1 stop bit at 19200 bit/s, switch M8161 on so each data register carries one byte, and give every drive its own slave address from 1 to 11. The steps below wire the bus, match the format at both ends, sequence the polls and prove the result drive by drive.
Can the FX2N be the Modbus RTU master for 11 CHF100A drives? #
Yes — one FX2N with the RS485-BD is enough: RS-485 allows the classic 32 nodes per segment, so a master plus 11 drives fits with room to spare, and the same pair carries status and frequency reads back to the PLC.
The board's channel runs the non-protocol RS instruction: it pushes a byte buffer out the port and fills a byte buffer on receive, with no built-in Modbus framing. That leaves three jobs to your ladder, one per section below:
- Build each RTU frame — slave address, function code, register, data and CRC16, low byte first.
- Sequence the bus — one master, one outstanding request, eleven slaves polled in turn.
- Validate every reply — address, function code, byte count and CRC before the data is used.
Hand-framed RTU is the same discipline you follow when writing a Modbus RTU master on an Omron CPM2 in ladder, where a controller with no Modbus instruction builds its own requests the same way (article:writing-a-modbus-rtu-master-on-an-omron-cpm2-in-ladder).
How do you wire and address the RS-485 bus? #
Wire one shielded twisted pair, A to A and B to B, daisy-chained from the RS485-BD through drive 1 to drive 11 with no star or tee, address each drive uniquely, and terminate only the two physical ends of the bus.
- Daisy-chain the pair from the RS485-BD through the drives in order, keeping every stub as short as the layout allows.
- Terminate the two physical ends only: enable the on-board termination the FX communication manual describes for the RS485-BD, and fit the end-of-line termination the CHF100A manual specifies at the last drive. Resistors at the middle drives load the driver and weaken the signal for every node.
- Give each drive a unique slave address from 1 to 11 on its keypad and read the address back. Address 0 is the Modbus broadcast address: a drive written at 0 acts but never answers, so a poll addressed to 0 always times out — the trap behind why Modbus RTU sends to slave address 0 instead of your device (article:why-modbus-rtu-sends-to-slave-address-0-instead-of-your-device).
- Set the identical serial format at all 11 drives — the format D8120 will carry in the next section. The address, baud and format parameters sit in the communication group of the CHF100A manual; take the parameter numbers from that manual, never from memory.
- Set the run-command source and frequency-reference source on each drive to communication. A drive left on keypad control accepts the write and ignores it.
- Route the pair away from motor cables; where the runs must cross power cables, cross at 90 degrees.
What goes in D8120 and why must M8161 be on? #
Set D8120 to 8 data bits, even parity, 1 stop bit, 19200 bit/s, header and terminator disabled, then switch M8161 on so the RS instruction moves one byte per data register.
The settings above are the decision; the encoding is looked up: the bit layout of D8120 — data length, parity, stop bits, baud code, header and terminator — is printed in the FX communication manual, so read the hex value that decodes to this format there before typing it in. RTU is binary, so header and terminator stay disabled; an enabled terminator would clip any frame byte that happened to match it.
M8161 switches the RS instruction to 8-bit handling, which is how the frame is built below. With M8161 off the instruction packs two bytes into each register, and the byte count and order on the wire come out wrong — the frame looks right in the registers and dies at the drive. A format mismatch anywhere on the bus shows up as the drive's receive indicator flickering while M8123 never comes on: characters arrive, but no frame parses.
How do you build and send a Modbus RTU frame with the RS instruction? #
Load the frame bytes into consecutive data registers, keep the RS instruction (FNC 80) executing every scan with its send buffer, send byte count, receive buffer and receive limit, then pulse M8122 once to transmit.
An RS instruction that stops executing stops receiving mid-frame, so leave its drive contact on for good. Build the request for the drive at the current index in consecutive data registers, one byte each. A write-single-register request — function code 06 — looks like this:
[addr] [06] [reg hi] [reg lo] [val hi] [val lo] [CRC lo] [CRC hi]
That is eight bytes, and the drive echoes the same eight back, so a write transaction puts 16 characters on the wire. A read of holding registers uses function code 03 and returns a byte count, the data and the CRC. Slave 11 travels as 0x0B. Take register addresses only from the register map in the CHF100A manual — a number from another drive family's map returns an exception. The FX2N has no CRC instruction, so compute the CRC16 in ladder and load its low byte first: a frame with the bytes swapped is discarded silently at the drive, and the only symptom is a timeout.
How do you poll 11 drives without overlapping requests? #
Run one outstanding transaction at a time: pulse M8122 for the drive at the current index, wait for M8123 under a 100 ms timer, validate, reset M8123, then index to the next address and rebuild.
- Keep an index that steps through the eleven addresses in turn and wraps back to the first; it never holds 0.
- Build the request for the indexed address, and store the result in a per-drive register block selected by the same index, so one copy routine serves every drive.
- Pulse M8122 and start the 100 ms timer on the same scan.
- When M8123 comes on, check four things before using anything: the reply address equals the address sent, the function code matches with its high bit clear, the byte count is what that function code promises, and the CRC recomputed over the reply is valid.
- Reset M8123 so the instruction re-arms. The reset plus the next frame build take at least one scan cycle — that is the gap between frames.
- If the timer beats M8123, set that drive's comm-fail bit and index on. Never hold the bus for one silent slave.
The timeout is set against the worked example below: a live transaction completes in roughly 19 ms, so the timer gives a 5× margin, and a dead drive costs one timeout per scan instead of stopping the poll. Treat the comm-fail bit as a real fault in the machine's stop logic: a drive keeps its last written reference when the bus dies, so wire the machine stop so a dead bus cannot leave a motor running uncommanded.
Example: how long does one full poll of 11 drives take at 19200 bit/s? #
About 205 ms per poll with a 10 ms turnaround allowance, which refreshes every drive close to 5 times a second — fast enough for speed-reference updates, too slow to close a fast control loop around the bus.
The arithmetic, for a read of one holding register (function 03) from each drive:
- The 8E1 format puts 11 bits on the wire per character: 1 start, 8 data, 1 parity, 1 stop.
- 11 bits ÷ 19200 bit/s = 0.573 ms per character.
- The request is 8 characters and the reply 7, so 15 characters: 15 × 0.573 = 8.6 ms of wire time per drive.
- Add a 10 ms allowance for drive turnaround and PLC handling — the number to verify on the bench, because a slow responder is the biggest mover of the total.
- Per drive: 8.6 + 10 = 18.6 ms. For eleven drives: 11 × 18.6 = 205 ms per full poll.
Consequences: one timed-out drive stretches the scan to 100 + 10 × 18.6 = 286 ms; dropping to 9600 bit/s doubles the wire time to 17.2 ms and pushes the poll toward 300 ms. Modbus RTU wants 3.5 character times of silence between frames — 2.0 ms at this baud — which the reset-and-rebuild gap in the sequence already provides. A turnaround-dominated cycle like this is why Modbus RTU drive polling on one serial port is slow even when the wire time looks small (article:why-modbus-rtu-drive-polling-on-one-serial-port-is-slow).
How do you bring the bus up one drive at a time? #
Prove one drive, then scale: read one register from a single CHF100A on a short cable, confirm a valid reply with a good CRC, and add drives one at a time, repeating the test after each.
- One drive on a short cable: poll a status or frequency register and confirm the reply address, byte count and CRC.
- Write a low frequency reference and read it back; the drive's display and the read value must match. If the write lands but the drive will not run, its command-source parameter is still on keypad or terminal.
- Connect the remaining drives one at a time, setting and checking each address before it joins the bus, and repeat the read-write test. The discipline is the one that pays off when commissioning five VFD drives on one Modbus gateway: prove every added node before the next (article:how-to-commission-five-vfd-drives-on-one-modbus-gateway).
- With all eleven drives connected, run the full poll for several minutes and log timeouts per address. Zero timeouts on every address is the pass criterion.
- Pull one drive's RS-485 connector while polling: the program must time out on that address, flag it, and keep polling the other ten without a stall.
- Run a drive under load while polling continues — motor-cable noise shows up under load, not on an idle bench.
Why does one drive answer while ten stay silent? #
Almost always addressing or format: the working drive has its address and format set, the silent ones are still at factory settings or share an address, so read the address and format parameters on each keypad and set them to the plan.
Work down the list in order:
- Swapped A and B on one drop: that drive is deaf on every poll. Swap the pair at one end of that drop.
- Format mismatch: compare the drive's baud, parity and stop bits against the D8120 decode, setting by setting.
- Duplicate addresses: both drives answer at once, the replies collide on the pair, and the master logs CRC failures rather than silence at that address.
- Missing end termination or long stubs: the bench worked with one drive, the full bus does not.
- First reply good, then nothing: M8123 was never reset, so the instruction never re-armed.
- Exception replies from one drive only: the register you polled is not in that drive's map — correct the address from the CHF100A manual.
Questions asked
How do you calculate the Modbus CRC16 in FX2N ladder?
The FX2N has no CRC instruction, so run the algorithm in ladder: start a 16-bit value at FFFF hex, exclusive-OR the first frame byte into its low half, then shift right eight times, exclusive-ORing A001 hex every time the bit shifted out was one. Repeat for each byte; the final value is the CRC, loaded low byte first. One 16-bit register, a loop counter and a byte pointer carry the whole calculation.
What does an exception reply from a CHF100A mean?
An exception reply sets the high bit of the function code, so a request with 06 comes back as 86 hex, and carries one exception code: 01, unsupported function; 02, a register the drive does not map; 03, a value outside the allowed range. Code 02 usually means the register number came from another drive family's map, and code 03 means the written frequency exceeded the drive's limit.
Can the bus run 8N1 instead of even parity?
Not as 8N1: the Modbus serial-line specification fixes 11 bits per character, with one stop bit when even or odd parity is used and two stop bits when parity is off, which is 8N2. A 10-bit 8N1 character breaks that rule even when both ends happen to agree. Whichever pair you choose, D8120 and all 11 drives must decode to the same 11-bit character.
How many drives can share this bus later?
Modbus addresses run to 247 and the classic RS-485 segment carries 32 nodes, so the wiring has headroom well past 11 drives. The binding limit is scan time: at the settings in the worked example, each added drive lengthens the poll by roughly 19 ms, so 24 drives push one full scan toward half a second. When that is too slow, split the drives across a second serial channel or a gateway.
Why does the drive show the written frequency but never start?
Because the frequency reference and the run command are separate items: the reference sits in a data register while the run command is a command bit, and both act only when the drive's command-source and frequency-source parameters select communication. Set those two parameters first, then write the run bit. A drive left on keypad control stores the reference and still waits for its own start key.