Troubleshooting
Why AdvancedHMI reads no data from an Omron NJ501-1300
Short answer
The Input string was not in correct format exception in AdvancedHMI is a value-conversion or address-parsing failure, not proof the Ethernet link is down. Prove one known NJ501-1300 value through a driver whose address model matches the controller — NJ variables by name, or a documented FINS memory area — with the controller at 192.168.250.1 and FINS/TCP on port 9600, then reintroduce display formatting.
On this page
- What does "Input string was not in correct format" mean in AdvancedHMI?
- Which driver reads an Omron NJ501-1300?
- Does a ping response prove the NJ501-1300 link is up?
- What do I enter for the address, the port and the FINS destination?
- Which address syntax does the NJ501-1300 accept?
- Which control do I bind first?
- Where is the exception actually thrown?
- When is the NJ501-1300 read fixed?
- Questions asked
The Input string was not in correct format message in AdvancedHMI is a conversion or parse failure inside the HMI project, not evidence that the Ethernet link to the NJ501-1300 is down. Two checks fail most often in this situation, and both look like success: a ping that answers, and an Allen-Bradley driver carried over from a working project. The fix is to prove one known controller value through a driver whose address model matches the NJ — its named variables, or a documented FINS memory area — and only then hand formatting back to the screen.
What does "Input string was not in correct format" mean in AdvancedHMI? #
It is a .NET string-conversion exception: some code handed a non-numeric string to a numeric parser, and .NET reports what failed but never where, so the throw can sit in the driver's address parser as easily as in the meter's format routine. In the reported setup the digital panel meter and the indicator button display nothing while this exception fires at runtime, and that combination means the binding never delivered a usable value.
AdvancedHMI projects are VB.NET, so the string can fail at three places: the address entry parsed against the driver's grammar, the response decoded into a value, or the control converting that value for display. Treat the message as a pointer to a layer, not as a verdict on the cable.
Which driver reads an Omron NJ501-1300? #
None of the Allen-Bradley drivers carries over: the NJ501-1300 exposes IEC 61131-3 named variables, a Logix-style EtherNet/IP driver reads Rockwell CIP tag services, and the two address models never meet, so the first commitment is a driver documented for Omron NJ access. The built-in port on the NJ501 is an ODVA EtherNet/IP adapter, and Omron documents FINS as the data-access protocol that port also answers.
Drivers published specifically for the NJ — the Omron NJ Ethernet implementations in commercial OPC servers and SCADA platforms such as Kepware and Ignition — document variable-based addressing, where the address is the declared name of a controller variable. The Omron drivers that ship with AdvancedHMI follow the FINS memory-area grammar of the CS/CJ generation instead, so read the driver's own documentation for the grammar it parses before typing an address.
A Rockwell-oriented driver failing against an Omron CPU is the same shape as the failure described in Why a Rockwell EtherNet/IP driver cannot read an Omron CJ2H: the driver's documented device family and access method decide, not the presence of an Ethernet cable. Proceed only when the chosen driver documents a way to read a defined location on an NJ-series CPU.
Does a ping response prove the NJ501-1300 link is up? #
No — a ping proves IP reachability and nothing above it, and this exception is thrown by code that never waited for a reply, so with the controller at 192.168.250.1 the ping can pass while the FINS destination, the port or the address grammar is still wrong. Three layers have to pass independently: ICMP reachability, which is what the ping tests; the transport and protocol layer, where a FINS/TCP conversation must actually open; and the grammar layer, where the address string must match the driver's parser. A green ping answers only the first.
A driver that reports connected can still fail every read, so demand a protocol response or a driver diagnostic that names the failing layer before editing anything on the screen. If reads time out with no bytes coming back, check the HMI PC's host firewall against the FINS port before suspecting the controller.
What do I enter for the address, the port and the FINS destination? #
For the first test put the AdvancedHMI PC on the controller's subnet — with the NJ501-1300 at its default 192.168.250.1 and mask 255.255.255.0, give the PC for example 192.168.250.10 with the same mask, and set FINS/TCP on port 9600 to destination network 0, node 1, unit 0. Those are Omron's documented defaults for the built-in EtherNet/IP port, and the FINS/TCP connection fields sit in Sysmac Studio under the controller setup for that port, where Omron's FINS function manual documents the same settings. By Omron's default rule the node number is the last octet of the controller's address, so if the site moved the controller to another subnet, the node follows the new last octet. Do not carry the Allen-Bradley project's connection entries across — port, path and slot concepts do not translate.
Worked example, subnet check: the PC address 192.168.250.10 AND 255.255.255.0 gives 192.168.250.0, and the controller address 192.168.250.1 AND 255.255.255.0 also gives 192.168.250.0, so a plain switch joins them and no gateway participates. If the PC were instead at 192.168.1.10, its AND with the mask gives 192.168.1.0 — a different network — and the correct move is to put the PC on the controller's subnet for the test, not to add routing. If this job also means specifying the machine-side computer that hosts the AdvancedHMI runtime, an industrial panel PC is the enclosure-rated form for a cabinet-door or console station.
Which address syntax does the NJ501-1300 accept? #
The controller answers two grammars: its native IEC 61131-3 variables are reached by declared name, FINS addresses a numbered memory area, and a string written in the wrong grammar fails at the parser before the cable carries anything — which throws exactly this exception. A variable-based driver takes the declared name, and the type comes from the declaration, so a DINT is delivered as a DINT.
A FINS grammar instead names a memory area and a number, and Omron's FINS function manual lists the areas the NJ-series CPU lets FINS commands reach; use a value you have placed in one of those documented areas. Typing a variable name into a numeric FINS address field fails locally, before any packet leaves the PC, and looks on screen exactly like a dead network.
Use a noncritical diagnostic value for this test — never a signal that moves anything, and nothing in the safety chain. Record the accepted address, its declared type and its current online value before testing a second one.
Which control do I bind first? #
Bind one digital panel meter to one supported numeric value with every optional conversion switched off, and leave the indicator button out of the test until the meter shows the same number Sysmac Studio watches online. Work the single binding down to this:
- Confirm the communication component on the control is the Omron one you intend; a control copied from the Allen-Bradley screen can still hold a duplicated driver component with its old settings, a documented AdvancedHMI trap covered in how duplicated AdvancedHMI driver components keep their old settings.
- Enter the test address in the driver's own grammar and delete stale address entries from that control's bindings.
- Match control to type: a numeric control for a DINT, INT or REAL, an indicator for a BOOL, and no implicit text conversion in between; a type mismatch here behaves like the silent failures described in Why AdvancedHMI Modbus TCP floats stop reading a PLC.
- Strip scaling, custom numeric format strings and application-side conversion code for the first read, then add each back only after the raw value matches the controller.
Run that one-control screen and compare its number with the online value. If the same exception still fires on a screen this small, the throw site is the address or the driver, and the next section locates it.
Where is the exception actually thrown? #
Run the project with the debugger attached and read the exception details and call stack, because the throw origin splits this failure into four sites with four different corrections — matching the site to the table replaces guessing with a fix.
| Throw site | What happened | Correction |
|---|---|---|
| Address parsing, before any packet | The entry is not in the driver's grammar, for example a variable name in a numeric FINS field | Rewrite the address in the grammar the driver documents for its access model |
| Driver response decode | A protocol response returned an error status, or a value came back as a type the driver did not expect | Check the FINS end code, the requested type against the declaration, and that the driver documents the NJ series |
| Control display conversion | A value arrived but the control cannot format it, typically a decimal-separator mismatch | Parse and format with an explicit numeric culture and a type-compatible binding |
| Application conversion code | Your own code parsed an empty or non-numeric string | Validate the string before parsing and keep one culture for the parse |
Two conclusions the table forces: a valid protocol error response is still an error, not process data, and no decimal-separator setting can repair an address the parser rejected. Without a stack trace in your build, the driver's diagnostic output and a capture at the FINS port separate the same four sites by whether bytes ever leave the PC.
When is the NJ501-1300 read fixed? #
It is fixed when one raw value watched online in Sysmac Studio appears, unchanged and unformatted, in one AdvancedHMI control — a response from the controller's FINS destination rendered as the same number the controller holds, with no scaling and no format string anywhere in the path. From that proof the decision for each case follows:
- Driver documented for NJ variables: bind the remaining controls by declared variable name and finish the screen on that driver.
- Driver FINS memory-area based: keep every read pointed at the documented accessible area holding the test value, and place new screen values there as the application grows.
- No driver in the build can do either: change the architecture, not the addresses — put a documented Omron NJ driver in front, in an OPC server or SCADA layer that carries one, and consume it from AdvancedHMI if your build can act as an OPC UA client.
- Formatting returns last, one control at a time, because every conversion re-added is a fresh chance to throw the same exception.
Questions asked
Does the NJ501-1300 support FINS?
Yes — over the built-in EtherNet/IP port, FINS runs as FINS/TCP or FINS/UDP on TCP or UDP port 9600, and the connection settings sit in Sysmac Studio's controller setup for that port. Support answers a transport question only: the driver on the AdvancedHMI side still has to accept the memory-area grammar the FINS manual documents for this CPU, or the variable names a native NJ driver uses.
Can I reuse the working Allen-Bradley EtherNet/IP settings for the Omron?
No. A Logix-oriented driver reads controller tags through the CIP services Rockwell controllers expose; the NJ501's built-in port is an ODVA EtherNet/IP adapter that carries tag data links and FINS, not a Logix tag database. Keep nothing from the AB project: not the driver, not the port-and-slot path idea, not the address strings. Configure from the Omron driver's own documentation.
What else throws Input string was not in correct format?
A value that arrives correctly can still fail at the display: a REAL sent as text with a comma decimal separator reaches a parser expecting a dot and throws this same exception. Check the Windows regional settings and any explicit format string on the control, set an invariant culture for the numeric parse, and remember the fix only applies after the raw value is proven at the driver.
Is CX-Programmer used to set up this connection?
No — CX-Programmer programs the CS/CJ family. The NJ501-1300 is configured with Sysmac Studio, and Omron publishes connection guides per HMI or driver that list the CPU series each one covers. Before following any setup sheet, check that its CPU column names the NJ series; a guide aimed at CS or CJ controllers uses numbered DM and CIO addresses the NJ family does not expose the same way.