Troubleshooting
CLICK PLC C-more P009 error on numeric register writes
Short answer
C-more EA1 error P009 (Re.INV.FUN.Code) on a CLICK PLC numeric write signals a Modbus function-code mismatch or serial bus collision, not a PLC integer limit. Remove any ladder Receive instruction on the HMI port, because CLICK accepts HMI writes natively as a Modbus slave and a Receive instruction causes multi-master contention. Point the EA1 Numeric Entry object to an unused single-word DS register as Signed Int 16 with native CLICK or Modbus 984 holding-register addressing.

On this page
When a C-more Micro EA1 panel writes bits to a CLICK PLC cleanly but returns error P009 (Re.INV.FUN.Code) on numeric entries, remove the ladder Receive instruction from the CLICK program and write directly from the EA1 Numeric Entry object to an unused single-word DS register configured as Signed Int 16. Error P009 signals a Modbus function-code mismatch or serial frame collision, not a CLICK PLC integer limitation. Keep your working serial settings untouched, eliminate multi-master contention on the port, and verify one writable holding register before modifying production setpoints.
Why P009 happens when bit writes work #
On C-more Micro-Graphic panels (EA1 and EA3 series), the AutomationDirect C-more Micro-Graphic Panel User Manual (EA1-MG6-USER-M) defines P009 as Re.INV.FUN.Code, meaning the PLC returned a different function code than the panel expected or the reply packet arrived corrupted. Under the MODBUS Application Protocol Specification V1.1b3, holding-register traffic uses Function Code 03 (0x03, Section 6.3) to read, Function Code 06 (0x06, Section 6.6) to write one register, and Function Code 16 (0x10, Section 6.12) to write multiple registers, up to 123 registers per request.
Section 7 of that Modbus specification defines how a server rejects an invalid request: it returns an Exception Response with the high bit of the function code set (Function Code + 0x80), yielding 0x83 for FC 03, 0x86 for FC 06, or 0x90 for FC 16, followed by a 1-byte exception code (0x01 Illegal Function, 0x02 Illegal Data Address, 0x03 Illegal Data Value, or 0x04 Slave Device Failure). Because that reply alters the returned function-code byte, a rejected holding-register write or a corrupted serial frame surfaces on the EA1 as P009.
Working bit writes already prove your cable polarity, baud rate, framing, and basic PLC slave response are healthy, so do not alter the working port configuration. Numeric writes fail while coil writes succeed for three specific reasons:
- A ladder Receive instruction on the CLICK PLC initiates traffic on the HMI serial port, creating multi-master bus collisions.
- The Numeric Entry tag uses the wrong protocol syntax or points outside valid CLICK holding-register bounds, triggering an exception frame.
- The object targets a double-word register (
DDorDF) with an incompatible write function code or mismatched data format.
Remove the ladder Receive instruction from the CLICK program #
An HMI-initiated numeric write requires no communication instructions in CLICK ladder logic. The CLICK CPU runs an integrated Modbus slave service in firmware that decodes incoming FC 06 and FC 16 requests and writes straight into internal data memory. Your ladder program simply reads the destination DS register in whatever compare, math, or timer rung uses the setpoint. Adding a Receive instruction does not initialize data types and does not enable numeric entry from the operator panel.
Leaving a Receive instruction active on the same serial port as the C-more panel breaks single-master Modbus RTU communication. That instruction makes the CLICK PLC transmit as a second master while the EA1 is polling and writing, producing line collisions that the EA1-MG6-USER-M manual documents as direct causes of P007, P008, and P009. Reserve CLICK ladder Send and Receive instructions strictly for ports where the PLC polls a serial slave device, such as troubleshooting CLICK PLC Modbus RTU master writes to a serial controller. On the HMI port, delete the Receive rung so the EA1 remains the only master.
Match the CLICK register type and Modbus address #
Rotating through DS, DD, DH, and DF hoping one sticks masks the underlying transaction fault. For a 4-digit whole-number setpoint from 0 to 9999, commit to a DS register paired with Signed Int 16 in C-more Micro software. The table below summarizes the CLICK memory map from the AutomationDirect CLICK PLC Hardware User Manual (C0-USER-M) alongside each matching panel tag type.
| CLICK register | Address range | Stored type and limits | Modbus 984 range | 0-based hex start | Write FCs | C-more Micro Tag Data Type |
|---|---|---|---|---|---|---|
DS |
DS1 to DS4500 |
Signed 16-bit integer (-32,768 to 32,767), 1 word |
400001 to 404500 |
0000h |
FC 06, FC 16 | Signed Int 16 |
DD |
DD1 to DD1000 |
Signed 32-bit integer (-2,147,483,648 to 2,147,483,647), 2 words |
416385 to 418383 |
4000h |
FC 16 only | Signed Int 32 |
DH |
DH1 to DH500 |
Hexadecimal 16-bit word (0000h to FFFFh), 1 word |
424577 to 425076 |
6000h |
FC 06, FC 16 | Unsigned Int 16 |
DF |
DF1 to DF500 |
IEEE 754 32-bit float (-3.4028235E+38 to 3.4028235E+38), 2 words |
428673 to 429671 |
7000h |
FC 16 only | Floating Point 32 (Floating PT32) |
Three tag-mapping mistakes trigger persistent faults even after you remove the Receive rung. First, never select BCD Integer in C-more Micro for a CLICK PLC; BCD encoding belongs to legacy 4-bit-per-digit controllers. Second, DD and DF each span two consecutive 16-bit holding registers (DD1 occupies 416385 low word and 416386 high word), so FC 06 cannot write them and both sides must agree on word order; if you truly need floating-point values, follow reading a CLICK PLC float over Modbus in an HMI after proving a single-word integer write. Third, switching to DH never cures a function-code error.
Bind the Numeric Entry tag to your configured PLC device (for example DEV001) using native CLICK syntax (DS100) when the EA1 runs the native CLICK serial driver. If your panel project uses the generic Modbus RTU driver instead, open Address Picker from the Program menu (or press Ctrl + T) in CLICK Programming Software and enable Display MODBUS Address to read the exact 6-digit 984 address or 0-based hex offset directly, confirming why a Modbus write to CLICK PLC DS1 needs address 0 whenever a driver expects zero-based offsets. If the stored setpoint must survive power loss, see retaining CLICK PLC values for a C-more HMI display.
Worked example: writing a setpoint to DS100 #
Take an illustrative unsigned whole-number setpoint stored in unused test register DS100 on PLC device DEV001. These numbers are worked-example inputs derived from the target range above, not field measurements, and they show every check before you load the screen onto a machine.
- Range headroom:
DS100holds a signed single-word maximum of32,767counts. Subtracting the upper setpoint gives32,767 - 9,999 = 22,768counts of headroom, confirming one word fits without overflow. - Modbus address conversion: Because
DS1starts at400001(offset0),DS100sits at400001 + (100 - 1) = 400100in 6-digit Modbus 984 notation. Subtracting that base address gives a 0-based decimal offset of400100 - 400001 = 99, or6 x 16 + 3 = 0063hin hex. - Normal reply versus P009 exception: Writing test value
1234(4 x 256 + 13 x 16 + 2 = 04D2h) via FC 06 expects the PLC to echo function code0x06, offset0063h, and data04D2h. Targeting an unmapped address such as405000(pastDS4500at404500) forces an exception reply with function code0x06 + 0x80 = 0x86and exception code0x02, which the EA1 reports asP009.
If your application actually needs two fractional decimal places (0.00 to 99.99), multiply by 100 and store 12.34 as 1234 in DS100 using C-more Micro digit and decimal formatting on the panel object. That keeps single-word FC 06 and FC 16 transfers intact; native 32-bit float tags (DF) ignore object digit and decimal formatting and require FC 16 multi-register writes.
Isolate and verify the numeric write #
Put the machine in a safe, stopped condition before testing HMI writes so an unexpected register change cannot start motion, heaters, or process valves. Then isolate the single-word register path in six steps without modifying your working serial communication parameters:
- Back up both projects: Save copies of the CLICK PLC and C-more Micro EA1 projects, and note the active driver, node address, baud rate, parity, and stop bits.
- Clear the Receive instruction: Delete the ladder Receive rung from the CLICK program, verify no other rung writes to test register
DS100, download to the PLC, and place the CPU in RUN mode. - Confirm a live PLC read: Monitor
DS100online in CLICK Programming Software, then place a Numeric Display on the EA1 bound toDS100(CLICK driver) or400100(Modbus RTU driver) asSigned Int 16. Confirm both numbers match before testing a write. - Write a mid-range test value: Add a Numeric Entry object to the same tag and data type, enter
1234, and accept the entry. VerifyDS100changes to1234in the PLC monitor with noP009error. - Watch for overwrites and test the upper limit: Observe
DS100across several PLC scans to confirm nothing overwrites it, then enter9999(270Fh) and confirm the panel reads it back cleanly. - Move to the production register: Apply the proven driver syntax and
Signed Int 16format to your production setpoint tag and reconnect the ladder rungs that read it.
Serial checks and register choice if P009 remains #
If P009 still triggers after removing the ladder Receive rung and verifying a clean single-word read, the fault lies in another screen tag or on the physical serial link. Work through these four checks documented in the EA1-MG6-USER-M manual:
- Audit every tag on the active screen: Note whether
P009appears when the screen opens or only when you submit the numeric entry. One invalid register address elsewhere on the same screen returns an exception reply with the high function-code bit set as soon as the panel polls that page. - Verify RS-485 Echo Suppression/Enable: Open C-more Micro Panel Manager and check the RS-485 echo setting; on 2-wire RS-485 circuits, un-suppressed transmit echo feeds the panel's own request straight back into its receiver and triggers
P009. - Eliminate serial electrical noise: Use shielded cable grounded at one end only, and route the serial cable away from AC power wiring and VFD motor leads so noise cannot corrupt response bytes.
- Confirm single-master ownership: Disconnect any second HMI, gateway, or PC polling utility on the same serial bus so only the EA1 originates Modbus RTU frames.
Choose the final CLICK register format directly from your setpoint range rather than rotating through register types: use DS (Signed Int 16) for whole-number setpoints within the signed single-word limit, use scaled DS integers for fixed-decimal entries to keep single-word writes simple, step up to DD (Signed Int 32, FC 16) only when whole numbers exceed the single-word maximum, and reserve DF (Floating Point 32, FC 16) strictly for applications requiring native IEEE 754 floating-point range.
Questions asked
How do you keep a C-more numeric setpoint in a CLICK DS register after a power cycle?
Open the Address Picker from the Program menu in CLICK Programming Software or press Ctrl + T, then check the Retentive option on your target DS register and optionally set an initial value, nickname, and comment. General-purpose DS registers do not retain values across power loss unless marked retentive. Download the updated project to the PLC, enter a test setpoint from the C-more panel, and cycle power to confirm the stored value holds.
Why does CLICK Modbus addressing differ from DirectLOGIC, Do-more, or Productivity controllers?
CLICK automatically maps its typed DS, DD, DH, and DF registers straight to Modbus holding registers with no ladder setup. DirectLOGIC exposes octal V-memory in a flat table where V0 maps to 40001, Do-more routes external Modbus traffic through dedicated server blocks such as MHR using MEMCOPY, PUBLISH, or SUBSCRIB instructions, and Productivity assigns no default Modbus addresses until you configure them manually or run Auto Assign Modbus Addresses in the Tag Database.
What happens on the C-more EA1 panel if an operator enters a number outside the allowed range?
When you set minimum and maximum entry limits inside the Numeric Entry object properties in C-more Micro software, the panel rejects out-of-range inputs locally and displays a keypad error before transmitting any Modbus write frame to the PLC. That local check stops invalid setpoints without generating a P009 communication fault and prevents operators from typing negative numbers into a signed integer register when your process only accepts positive counts.
Can CLICK CPU firmware differences in versions 3.00 through 3.40 affect numeric register handling or Modbus access?
CLICK CPU firmware ships inside the CLICK Programming Software installer and loads through the online Update Firmware utility. Versions 3.00 through 3.11 fixed a COPY instruction defect where Copy Binary mode on DD and DF registers ran as Copy Value mode, version 3.20 accelerated Port 1 Modbus TCP Server communications and added C2-DCM module support, and version 3.40 added an IP and MAC Allow List on C0 and C2 Ethernet CPUs that can block external Modbus TCP clients until permitted.


