After the fix, the CJ2 PLC reads the PT210 weight stream digitally through RXD, eliminating analog conversion and scaling as sources of disagreement with the indicator display. Use RS-232C streaming for the shortest commissioning path. The indicator’s Ethernet port uses Modbus TCP, not EtherNet/IP.
Connection Options and Recommendation
The installation uses an Omron Cj2m_Cpu31 PLC and a PT210 weighing indicator. Three connection paths require different PLC resources and software.
| Approach | PLC method | Primary consideration | Decision |
|---|---|---|---|
| 4–20 mA | Analog input through the existing converter | Adds analog scaling, converter accuracy, wiring, and input-channel error to the measurement chain | Retain only if the application can tolerate the measured discrepancy |
| RS-232C | CJ2 serial port with RXD; TXD only when a request must be transmitted |
The PT210 can stream data continuously, allowing the PLC to receive weight frames without polling |
Recommended for this installation |
| Ethernet | Modbus TCP client logic compatible with the PLC Ethernet interface | The PT210 does not provide EtherNet/IP; an EtherNet/IP scanner and EDS workflow will not communicate with it |
Use only after confirming CJ2 Modbus TCP client capability and the indicator’s register map |
Do not select a protocol from the connector type alone. An Ethernet socket does not imply EtherNet/IP support. The endpoints must implement the same application protocol and agree on how weight data is represented.
Commissioning Prerequisites
Before anything else, confirm the serial settings and message format in the PT210 documentation. Record the baud rate, data bits, parity, stop bits, streaming selection, frame length, field order, sign representation, decimal-point handling, units, and message terminator. Do not move on until each setting has a matching PLC configuration or a defined parsing rule.
- Confirm that the CJ2 serial interface is electrically RS-232C and available to the application.
- Identify the indicator transmit, receive, and signal-ground terminals. Determine from the equipment pinouts whether transmit and receive conductors must cross between devices.
- Configure the
PT210for streaming output. - Configure the receiving device for exactly the same serial framing. A baud-rate, parity, or stop-bit mismatch commonly produces missing or corrupted characters.
- Document the complete frame using the indicator manual. Do not infer byte positions from one displayed weight because signs, leading spaces, overload indications, and decimal placement can change the frame.
If Ethernet remains under consideration, locate the PT210 Modbus TCP register definitions and data encoding. Then verify that the selected CJ2 Ethernet port and PLC program can act as the required Modbus TCP client. EtherNet/IP Network Configurator and an EDS file apply to an EtherNet/IP device; they do not convert a Modbus TCP server into an EtherNet/IP adapter.
PT210 Streaming Test
Prove the indicator output independently before writing PLC receive logic. A PC terminal test separates indicator configuration and cabling faults from PLC programming faults.
- Connect the
PT210RS-232C interface to a PC serial port or suitable adapter using the pinout required by both devices. - Open a serial terminal such as Realterm and enter the indicator’s configured baud rate, data bits, parity, and stop bits.
- Enable streaming on the indicator and observe several complete transmissions.
- Apply at least three stable load conditions, including zero and two nonzero values. Save the raw characters for each condition.
- Identify the start of the weight field, sign, digits, decimal handling, unit characters, status characters, and terminating character or characters from the documented frame definition.
- Interrupt the cable or stop streaming briefly, then restore it. Confirm that complete frames resume predictably.
Do not connect the PLC until the terminal displays repeatable, correctly delimited frames. Garbled terminal data points to serial-format or wiring errors. Correct-looking but incomplete frames point to termination, receive-buffer, or display-mode problems.
CJ2 Receive Configuration and Logic
Match the CJ2 serial-port settings to the values proven during the PC test. The PLC must know when a message is complete and must allocate enough receive storage for the documented frame. Use RXD to transfer received serial data into PLC memory.
- Set the CJ2 port mode and serial framing to match the
PT210. - Allocate a receive buffer longer than the largest documented indicator frame. Keep the raw received data separate from the numeric weight destination.
- Execute
RXDaccording to the CJ2 serial-port operating method and the selected completion condition. - Accept a frame only when its received length and terminator match the
PT210format. If the format defines status or validity characters, test them before using the weight. - Copy the weight characters into a parsing buffer, remove only documented separators or unit characters, and process the sign and decimal position explicitly.
- Update the control-program weight tag only after the entire frame passes validation. Retain the previous valid value or raise a data-invalid state when a frame fails.
Streaming normally removes the need to transmit a request, so TXD is not part of the normal receive cycle unless the selected PT210 mode requires a command. Prevent repeated RXD triggering from overwriting an unprocessed message. Use a receive-complete state, parse the captured frame, clear or re-arm the receive operation, and then wait for the next complete frame.
Weight Conversion and Data Validity
Digital communication removes the analog converter and analog input from the signal path, but it does not remove format errors. Treat the received message as structured data rather than immediately converting every numeric-looking character.
| Observed symptom | Likely mechanism | Check |
|---|---|---|
| No characters received | Wrong port, wiring, streaming state, or serial framing | Repeat the proven PC test, then compare every PLC port setting |
| Unreadable characters | Baud, parity, data-bit, or stop-bit mismatch | Compare the PLC configuration with the tested terminal configuration |
| Frames shift in memory | Incorrect length or terminator handling | Compare raw PLC bytes with a complete terminal capture |
| Value differs by a power of ten | Decimal point ignored or implied decimal position applied incorrectly | Compare raw digits, displayed value, and documented decimal convention |
| Negative values become positive | Sign character omitted during parsing | Test a negative indication and inspect the raw frame |
| Stale weight remains active | Program has no communications timeout or validity state | Disconnect the serial link and confirm the control logic rejects stale data |
Keep three values visible during commissioning: raw received characters, parsed numeric weight, and a communication-valid flag. If the indicator transmits engineering units, preserve or validate that field so a configuration change cannot silently alter the meaning of the number.
Verification and Recurring Pitfalls
- Compare the parsed PLC value with the
PT210display at zero and at multiple stable loads across the operating range. - Confirm sign and decimal placement with values that exercise both fields.
- Cycle PLC power and indicator power separately. Verify that the receive sequence restarts without a manual buffer reset.
- Disconnect the serial cable. Confirm that the program declares the data invalid instead of holding a stale value as live process data.
- Reconnect the cable and confirm automatic recovery on a complete valid frame.
- Expose invalid-frame counts or a communications status bit for maintenance diagnostics.
Common commissioning mistakes include treating Ethernet as a universal protocol, using EtherNet/IP configuration for a Modbus TCP device, parsing a partial streaming frame, and validating only one positive load. Do not move the weight into control logic until framing, status, sign, decimal position, freshness, and recovery have all been tested.
FAQ
How do I connect a PT210 to an Omron CJ2 PLC?
Configure the PT210 for RS-232C streaming, prove its output with a PC terminal, match the CJ2 serial settings, and receive complete frames with RXD. Use TXD only if the selected indicator mode requires a transmitted request.
How do I use the PT210 Ethernet port with EtherNet/IP?
You cannot use the described PT210 Ethernet interface as an EtherNet/IP adapter because it provides Modbus TCP. Select Modbus TCP only after confirming that the CJ2 can operate as the required client and after obtaining the indicator’s register map.
How do I verify that the PLC weight value is correct?
Compare raw frames, parsed PLC weight, and the PT210 display at zero and several stable loads; then test sign, decimal placement, cable disconnection, stale-data rejection, reconnection, and automatic receipt of the next complete valid frame.