Implementing Tare Function in Siemens LOGO! for Bag Filling
An automatic bag-filling machine must establish a true zero reference on every cycle because empty-bag weight, container seating, and material residue drift the load cell baseline. In a Siemens LOGO! 8 logic relay the tare function can be implemented either by writing the captured offset back to the Analog Amplifier block or by adding the captured tare value to the target weight. This reference details both methods, the supporting hardware selection, the LOGO! Soft Comfort V8 programming sequence, and the field commissioning checks required to achieve ±0.05 kg repeatability with a 30 kg load cell.
1. Operating Principle and Signal Flow
The 30 kg single-point load cell operates in a Wheatstone bridge configuration. At zero applied force the bridge output is nominally 0 mV/V; at full scale (30 kg) it produces the rated sensitivity, typically 2.0 mV/V. The external signal conditioner applies an excitation voltage (commonly 5 VDC or 10 VDC), amplifies the millivolt signal, and produces a 0–10 V output that is proportional to applied weight.
The Siemens LOGO! receives this 0–10 V signal on an analog input. The LOGO! internal analog representation is 0–1000 units (10-bit resolution), with a refresh interval of 250 ms on the base module analog inputs. The Analog Amplifier block maps this 0–1000 internal count to engineering units of 0.0–30.0 kg using a gain and offset pair. The Analog Threshold Trigger block compares the scaled weight to the setpoint and energizes the fill valve output when the weight is below setpoint and de-energizes it at the cutoff threshold.
The tare function captures the load cell reading at the moment the empty bag is placed but no product has been dispensed, then subtracts this baseline so the net weight shown to the control logic represents only the dispensed product. Two implementation paths are detailed in Section 5 and Section 6.
2. Prerequisites
2.1 Hardware
| Component | Part Number | Notes |
|---|---|---|
| LOGO! 12/24 RCEo Base Module | 6ED1052-1MD08-0BA0 | 4 DI, 4 DO relay, 4 AI (0–10 V) |
| LOGO! 230 RCEo Base Module | 6ED1052-1FB08-0BA0 | 8 DI, 4 DO relay, no AI (requires AM2) |
| LOGO! AM2 Expansion | 6ED1055-1MA00-0BA2 | 2 AI; configurable 0–10 V or 0/4–20 mA |
| LOGO! AM2 RTD | 6ED1055-1MD00-0BA2 | PT100/PT1000 inputs for temperature compensation |
| LOGO! AM2 AQ | 6ED1055-1MM00-0BA2 | 2 AO; 0–10 V or 0/4–20 mA |
| LOGO! Power 24 V | 6EP1331-5BA00 | 24 V / 1.3 A stabilized supply |
| 30 kg load cell | Various | 4-wire, 2 mV/V nominal sensitivity |
| Load cell amplifier | Various (Phidgets 1124, generic 0–10 V bridge amp) | Single-channel 24 V loop powered preferred |
Refer to the Siemens LOGO! product page and the LOGO! 8 System Manual on the Siemens Industry Online Support portal for the full selection of base modules, expansion modules, and accessories.
2.2 Firmware
LOGO! 8 base modules shipped after mid-2018 carry firmware 1.08.xx or later. The Analog Math block, User-Defined Functions (UDF), and direct memory write to block parameters require LOGO! 8.1 (FS:04) or later. Update the firmware using LOGO! Soft Comfort V8.3 or V8.4 and a standard Ethernet cable to the LOGO! Ethernet port (port 1). The current firmware version is visible on the LOGO! onboard display under Menu → Diagnostics → Software, or via the integrated web server at http://<LOGO IP>/.
To update the firmware, open LOGO! Soft Comfort, connect to the LOGO!, and select Tools → Firmware Update. The firmware file (LWE file format) is bundled with the LOGO! Soft Comfort installation under C:\Program Files\Siemens\LOGOComfort_V8\Firmware\. The transfer takes 60–90 seconds and the LOGO! reboots automatically. The Ethernet configuration and program are retained across the firmware update.
2.3 Software
LOGO! Soft Comfort V8.3 (order number 6ED1058-0BA08-0YA1) or later. The V8.4 release adds support for the LOGO! 8.3 base module (FS:05) and the LOGO! CMR (cellular router) and LOGO! CSM (unmanaged switch) modules. Program in FBD (Function Block Diagram) because the Analog Amplifier, Analog Threshold Trigger, and Analog Math blocks are native FBD elements. The Ladder Diagram (LD) editor does not natively expose analog blocks; a small FBD subroutine is required even when the top-level program is in LD.
2.4 Cabling and Shielding
Use a shielded 4-conductor cable between the load cell and the signal conditioner; ground the shield at the conditioner end only. Run the 0–10 V output on a twisted, shielded pair to the LOGO! AI terminal. Avoid routing the analog cable parallel to VFD output cables; if crossing is unavoidable, cross at 90° and maintain a minimum 200 mm separation. Apply a ferrite bead (e.g., Würth Elektronik 74270097) on the analog cable within 50 mm of the LOGO! terminal to suppress common-mode noise.
3. Load Cell and Signal Conditioner Wiring
3.1 Load Cell Mechanical Mounting
Mount the load cell on a rigid, vibration-isolated platen. The platen must be free to tilt slightly to avoid side-loading the cell. A typical mounting kit uses a single M10 stud at the top of the cell and a button-load foot at the bottom. The button foot allows the cell to return to its vertical neutral position when the load is removed. Do not over-tighten the mounting hardware; the cell's specified deflection at full scale is typically 0.2–0.5 mm, and an over-tight mount preloads the cell and shifts the zero.
For a 30 kg single-point load cell, the recommended mounting surface is a steel plate of at least 10 mm thickness, machined flat to within 0.05 mm. The platen should be larger than the bag's footprint (typically 400 mm × 600 mm) but smaller than the load cell's load introduction area (typically 350 mm × 350 mm for a 30 kg cell) to ensure the applied force is centered on the cell's sensing element.
3.2 Load Cell Electrical Connection
A 4-wire load cell uses two excitation lines (EX+, EX-) and two signal lines (SIG+, SIG-). The conditioner applies a stable 5 VDC or 10 VDC across EX+ / EX- and reads the millivolt difference between SIG+ and SIG-. The output stage produces 0 V at 0 kg and 10 V at the load cell's calibrated full scale (30 kg in this application).
| Load Cell Wire | Signal Conditioner Terminal | Function |
|---|---|---|
| Red | EX+ | Excitation positive |
| Black | EX- | Excitation negative |
| Green | SIG+ | Signal positive |
| White | SIG- | Signal negative |
| Yellow / bare | Shield | Connect to conditioner ground only |
3.3 Signal Conditioner to LOGO! Input
| Conditioner Output | LOGO! Terminal | Notes |
|---|---|---|
| 0–10 V OUT + | I7 (AI3 on 12/24 RCE) | Positive analog signal |
| 0–10 V OUT - | M or - terminal | Analog ground |
| 24 VDC + | LOGO! 24 V supply | Loop power |
| 24 VDC - | LOGO! 24 V GND | Common return |
3.4 Calibration of the Signal Conditioner
With no load on the load cell, adjust the conditioner zero potentiometer until the output reads 0.00 VDC ± 5 mV measured at the LOGO! terminal. Apply a known calibration mass of 20 kg (or a series of known masses spanning 0–30 kg) and adjust the span potentiometer until the output reads 6.667 VDC (20 kg / 30 kg × 10 V). Repeat zero and span twice to compensate for interaction. After final adjustment record the calibration certificate with date, masses used, output voltage at each step, and ambient temperature.
4. LOGO! Analog Input Configuration
4.1 Base Module Analog Inputs
The LOGO! 12/24 RCEo base module provides four analog inputs: AI1, AI2, AI3, and AI4. These share their physical terminals with digital inputs I7, I8, I1, and I2 respectively. AI1 and AI2 (terminals I7 and I8) are 0–10 V only. AI3 and AI4 (terminals I1 and I2) can be configured as 0–10 V (default) or 0–20 mA by inserting the appropriate jumper on the bottom of the module. The internal representation is 0–1000 counts (10-bit, 0.010 V/count).
For an AM2 analog expansion module the inputs are addressed as AI5/AI6 (first AM2), AI7/AI8 (second AM2), and so on. AM2 inputs can be 0–10 V or 0–20 mA, configured per-channel by LOGO! Soft Comfort block parameters. The AM2 module also has a hardware filter jumper with positions 0.5 s, 1 s, 2 s, 4 s, and 8 s; for a noisy bag-filling environment, set the filter to 1–2 s to smooth the analog reading without introducing excessive lag.
4.2 Analog Amplifier Block Parameters
| Parameter | Value (for 0–30 kg scale) | Function |
|---|---|---|
| Sensor type | 0–10 V | Matches conditioner output |
| Gain | 30 | Multiplies 0–1000 → 0–30000 (engineering ×100) |
| Offset | 0 | Initial baseline; will be replaced by tare |
| Output unit | kg × 100 | Internal integer; divide by 100 for display |
The output of the Analog Amplifier is a 16-bit signed integer. With gain 30 and sensor 0–10 V the maximum output is 30000, representing 300.00 kg if the offset remains 0. The actual range is set by the gain to match the calibrated full scale. If the application uses a smaller load cell (e.g., 5 kg) the gain can be increased to 200 to maintain internal resolution; the LOGO! analog input does not change but the amplifier's output scaling becomes finer.
4.3 Analog Threshold Trigger Parameters
| Parameter | Value (typical 5 kg fill) | Function |
|---|---|---|
| Gain | 1 | Pass-through |
| Offset | 0 | Pass-through |
| ON threshold | 0 | Threshold for energizing output |
| OFF threshold | 500 (5.00 kg) or network reference | Threshold for de-energizing output |
| Hysteresis | 10 (0.10 kg) | Anti-chatter band |
The Threshold Trigger output is a Boolean. In a bag-filling application the fill valve is normally closed; the LOGO! output energizes a relay that opens the valve while the weight is below cutoff. The block can be inverted to support normally-open valve logic.
The Variable Threshold option, added in firmware 1.08.xx, allows the OFF threshold to be driven by a network reference (analog marker word) instead of a constant. Enable this option in the block properties dialog. If the firmware is older than 1.08.xx, the threshold is constant and Method A (variable cutoff) cannot be implemented; the user must fall back to Method B (variable offset) or update the firmware.
5. Method A: Add Tare to Target Weight (Recommended)
This is the method validated in the field report. The tare value is captured at the start of each cycle and added to the target weight. The amplifier offset and gain remain at their calibrated values, which preserves the linearity of the scale and avoids touching the block parameters in real time.
5.1 Logic Sequence
- Operator presses the tare button (I1, B001 in the user's project). The pulse edge enables a one-shot capture (B002).
- The Analog Amplifier output (in engineering ×100 units) is latched into a marker word MW10 (B005) on the rising edge of the capture pulse. Because the amplifier output represents the gross weight (bag + any residue), MW10 holds the tare value.
- The target weight is entered by the operator as a constant B006. For a 5 kg fill, B006 = 500.
- A Math block (B007) computes the cutoff threshold as MW10 + B006. For 5 kg fill into a 0.25 kg bag, the cutoff threshold is 750 (representing 7.50 kg gross).
- The Analog Threshold Trigger (B003) compares the live amplifier output to the computed cutoff threshold and de-energizes the fill valve when the weight reaches the threshold.
- After the fill cycle, the fill-complete output Q1 remains latched until the bag is removed and the cycle start button is pressed again, which retriggers the tare capture and reinitializes the threshold.
5.2 Block Diagram (FBD)
| Block | Function | Inputs | Outputs | Parameters |
|---|---|---|---|---|
| B001 | Digital input I1 | I1 (tare button) | Q (pulse) | — |
| B002 | One-shot / edge trigger | B001.Q | Q (1 cycle) | Edge: rising |
| B003 | Analog threshold trigger | Amplifier (B004).AQ | Q (fill valve) | ON=0, OFF=MW10+B006, hysteresis=10 |
| B004 | Analog amplifier | AI3 (I1 terminal) | AQ | Sensor 0–10V, gain 30, offset 0 |
| B005 | Latch (analog) | B004.AQ, B002.Q | AQ | Stored on rising edge of B002 |
| B006 | Analog constant | — | AQ | 500 (5.00 kg) |
| B007 | Math (addition) | MW10, B006 | AQ | Function: A + B |
| B008 | Output Q1 | B003.Q | Q1 | — |
5.3 Parameter Wiring (LOGO! Soft Comfort)
Set the Analog Threshold Trigger's OFF threshold to a network reference that points to the output of the Math block. The recommended reference name is NetRef_TareCutoff. The Math block inputs are NetRef_Tare (pointing to MW10) and NetRef_Target (pointing to B006). The target weight itself can be exposed to the LOGO! display (LOGO! TD or LOGO! TDE) or to a connected HMI via Ethernet.
5.4 Advantages of Method A
- The amplifier gain and offset remain at their calibrated values, so linearity is preserved across the full scale.
- No block parameter is rewritten at runtime, eliminating the risk of a partial write leaving the amplifier in an undefined state.
- The tare value is visible and can be trended, alarm-filtered, or used to detect a stuck bag (e.g., tare > 0.5 kg indicates bag-handler error).
- A running average of the last 10 tare values can be used to detect progressive drift (e.g., accumulating residue on the load cell platen).
- Negative tare (subtracting a fixture weight) is implemented naturally by inverting the sign in the Math block.
5.5 Limitations
- The Analog Threshold Trigger block expects a constant threshold in the parameter dialog. To use a variable threshold the block's OFF threshold must be linked to a network reference, which LOGO! 8 supports only on Analog Threshold Trigger blocks with the Variable Threshold option (added in firmware 1.08.xx). Confirm firmware by reading the LOGO! web server's Module Information page (Tools → Web Server → Module Info).
- The internal representation is integer (×100 kg). Sub-gram resolution is not available; the LSB is 10 g. If higher resolution is required, migrate to a Siemens S7-1200 with the SM 1231 analog input module, which supports 13- and 16-bit representations.
- The Analog Math block uses 32-bit floating point internally, but the input values are 16-bit integers. No precision loss occurs for the tare + target addition because both operands are within the 16-bit range.
6. Method B: Modify Amplifier Offset (Original Concept)
This was the user's original idea: at the moment the tare button is pressed, write the negative of the current amplifier reading back into the amplifier's offset parameter. The advantage is that the downstream threshold does not change; the disadvantage is that the amplifier block's offset is a non-retentive parameter that can only be rewritten by the program using an analog memory write, supported in LOGO! 8 firmware 1.08.xx and later.
6.1 Logic Sequence
- The tare button (I1) triggers a one-shot pulse (B002).
- On the rising edge of the pulse, the current amplifier output (B003.AQ) is read and its negative is computed using a Math block with function "A × -1" (B005).
- A second Math block (B006) writes the result to a marker word MW20, which is then mapped back to the amplifier's offset parameter via a network reference.
- The Threshold Trigger (B004) compares the now-zeroed amplifier output to the constant setpoint (e.g., 5.00 kg). The fill valve closes when the amplifier output reaches 5.00 kg.
6.2 Network Reference Setup
LOGO! 8 supports the assignment of network references to block parameters, including the Amplifier's offset parameter. In LOGO! Soft Comfort, right-click the Amplifier block, select Properties → Parameters, and bind the Offset field to NetRef_TareOffset. At runtime, writing a value to NetRef_TareOffset (a memory word) updates the amplifier's effective offset.
6.3 Limitations and Risks
- Each cycle overwrites the amplifier's calibration. If the write is interrupted (e.g., LOGO! enters Stop mode mid-cycle), the amplifier offset reverts to its last downloaded value, which can cause the next cycle to overfill or underfill.
- The amplifier's offset is intended for fixed calibration adjustment, not for per-cycle tare. Using it for tare adds latency: the LOGO! analog input is sampled at 250 ms; the offset rewrite takes effect on the next scan, typically 50–100 ms later.
- If the tare value exceeds the amplifier's full scale (i.e., the bag is heavier than the load cell capacity), the output saturates and the tare function fails silently. Add an alarm block that flags a tare value greater than, e.g., 20 % of full scale (6 kg on a 30 kg cell).
- The amplifier's output range is reduced by the offset. A -500 offset (representing a 5 kg tare) reduces the positive dynamic range from 30000 to 29500, which limits the maximum fillable weight to 29.5 kg on a 30 kg cell.
6.4 Recommended Use
Method B is appropriate when the threshold trigger is implemented in a downstream device (e.g., a panel HMI or a separate logic module) that expects the amplifier to deliver a tared value. In the LOGO!-only architecture this method is generally inferior to Method A.
7. Step-by-Step Programming in LOGO! Soft Comfort V8
7.1 Project Setup
- Launch LOGO! Soft Comfort V8.3 (or V8.4) and create a new project.
- Select the base module from the hardware catalog. If using LOGO! 12/24 RCEo (6ED1052-1MD08-0BA0), the catalog entry matches.
- Add the AM2 expansion if the 4 base analog inputs are insufficient. Drag the AM2 from the catalog onto the expansion slot. The catalog entry is 6ED1055-1MA00-0BA2.
- Set the LOGO! IP address under Tools → Ethernet Connections. Use a static address (e.g., 192.168.0.10) or enable DHCP.
- Configure the LOGO! clock under Tools → Set Clock if any time-based logic (e.g., shift register, on-delay) is used.
7.2 Adding the Logic Blocks (Method A)
- Open the FBD editor. Place a Digital Input block and assign it to I1. Label it
Tare_Button. - Place an Edge-triggered Pulse Generator or a Wiping Relay to produce a single-cycle pulse on the rising edge. Label it
Tare_OneShot. - Place an Analog Amplifier block. Assign its input to AI3 (the physical I1 terminal on a 12/24 RCEo, configured for 0–10 V). Set Sensor = 0–10 V, Gain = 30, Offset = 0. Label it
Amp_30kg. - Place an Analog Latch or a Set/Reset latch configured for analog storage. Drive the Set input with
Tare_OneShotand the data input withAmp_30kg.AQ. Label itTare_Store. - Place an Analog Constant. Set the value to 500 (5.00 kg). Label it
Target_5kg. - Place an Analog Math block with function "A + B". Wire A to
Tare_Store.AQand B toTarget_5kg.AQ. Label itCutoff_Sum. - Place an Analog Threshold Trigger with Variable Threshold = enabled (if firmware supports it). Wire the analog input to
Amp_30kg.AQand the threshold reference toCutoff_Sum.AQ. Set ON = 0, OFF = (computed), Hysteresis = 10. Label itFill_Cutoff. - Place a Digital Output block and assign it to Q1. Wire it to
Fill_Cutoff.Q. Label itFill_Valve. - Add a Cycle Start button on I2, an On-delay to debounce, and a Reset pulse to clear the latched tare when the bag is removed.
7.3 Downloading and Going Online
- Connect the PC to the LOGO! Ethernet port. Use Tools → PC → LOGO! Connection.
- Click Download (F8). Select PC → LOGO!. After the transfer completes the LOGO! enters Run mode automatically.
- Open the Online Test (Ctrl+F5) to view the live state of every block: amplifier output, tare value, computed cutoff, threshold trigger output, and Q1.
- If the transfer fails with error 0x8004F001, the LOGO! is in Stop mode or the program memory is full. Clear the program memory under Tools → Clear LOGO! and retry.
7.4 Saving the Program to the LOGO! SD Card
The LOGO! ships with a microSD slot that accepts cards up to 32 GB. Insert a Siemens-formatted card (6ED1057-1AA00-0BA0) to enable auto-backup, datalogging, and recipe storage. The recipe function (LOGO! 8.2 and later) is particularly useful for storing per-product target weights (5.00 kg, 10.00 kg, 25.00 kg) and recalling them by selector switch. Up to 64 recipes can be stored on a single SD card, each containing 32 values.
To export a recipe, open LOGO! Soft Comfort, select File → Export → Recipe, and save the .lma file to the SD card's \LOGO\Recipe\ directory. To load a recipe at runtime, use the Recipe block (added in LOGO! 8.2) and assign its selection input to a digital input wired to a selector switch.
7.5 LOGO! TD/TDE Text Display Configuration
The LOGO! TD (6ED1055-4MH08-0BA0) and LOGO! TDE (6ED1055-4MH08-0BA1) are 6-line text displays that connect to the LOGO! base module via the proprietary TD bus. To display the tare, target, and net weight on the TD:
- Open the Message Text configuration in LOGO! Soft Comfort.
- Insert a Message Text block. Configure the message trigger to be always on.
- In the message body, add three numeric fields. The first references
NetRef_Gross(amplifier output), the second referencesNetRef_Tare(latch output), the third referencesNetRef_Cutoff(math output). - Set the display format to "0.00" (two decimal places) so the internal ×100 values appear as 1.23 kg, 0.25 kg, 5.25 kg.
- Enable the bar graph on the second line to show fill progress from 0 to cutoff.
7.6 LOGO! Web Server for Remote Monitoring
LOGO! 8 includes an integrated web server that exposes variable values over HTTP. To enable the web server, navigate to Tools → Web Server → Enable in LOGO! Soft Comfort and assign a user password. Once enabled, the current values of NetRef_Tare, NetRef_Cutoff, and the live amplifier output are visible at http://<LOGO IP>/vars. The web server also supports Modbus TCP polling on port 502, which allows SCADA systems to read the tare and cutoff values without custom protocol handling.
8. Logic Diagram and State Sequence
The following inline SVG depicts the signal flow from the load cell through the LOGO! to the fill valve.
The state machine for one fill cycle is shown below.
9. Verification and Commissioning Procedure
9.1 Static Verification (Bench Test)
- With no load on the load cell, place the LOGO! in Run mode and observe the live amplifier output in Online Test. The value should be 0 ± 5 counts (0.00 ± 0.05 kg).
- Apply a 1.000 kg calibration mass. The amplifier output should read 100 ± 5 counts (1.00 ± 0.05 kg).
- Apply a 10.000 kg calibration mass. The amplifier output should read 1000 ± 5 counts.
- Apply a 30.000 kg calibration mass. The amplifier output should read 3000 ± 5 counts.
- Verify linearity by applying 5, 15, and 25 kg and checking the deviation against the calculated value.
9.2 Tare Function Verification
- With the load cell empty, press the tare button. The
Tare_Storeblock should hold 0 ± 5 counts. - Place a 0.250 kg empty bag on the platen. The amplifier output should read 25 ± 5 counts.
- Press the tare button. The
Tare_Storeblock should now hold 25 ± 5 counts, and theCutoff_Sumblock should hold 525 (5.00 kg + 0.25 kg = 5.25 kg). - Press the cycle start button. The fill valve (Q1) should energize.
- Manually add weight to the load cell in 1 kg increments. The fill valve should de-energize when the amplifier output reaches 525 counts.
- Remove the bag. The amplifier output should drop back to 0. The cycle ends.
9.3 Repeatability Test
- Run 20 consecutive fills at 5.00 kg target into identical 0.25 kg bags.
- Record the gross weight of each filled bag on a calibrated checkweigher.
- Calculate the mean and standard deviation. The standard deviation should be below 0.05 kg (50 g) for a properly tuned system.
- Compute the process capability index Cpk = (USL - μ) / (3σ) where USL is the upper specification limit (5.10 kg for a ±100 g tolerance). A Cpk greater than 1.33 indicates a capable process.
- If the standard deviation exceeds 0.10 kg, inspect the load cell mounting for mechanical play, check the cable shielding, and verify that the LOGO! scan time is not impacted by an excessive number of communication blocks.
| Cycle | Gross Weight (kg) | Deviation from Target (g) |
|---|---|---|
| 1 | 5.02 | +20 |
| 2 | 4.98 | -20 |
| 3 | 5.01 | +10 |
| 4 | 4.99 | -10 |
| 5 | 5.00 | 0 |
| Mean | 5.000 | — |
| Std Dev | 0.016 | — |
| Cpk | 2.08 | Capable |
9.4 Field Tuning Knobs
| Parameter | Effect | Adjustment Range |
|---|---|---|
| Hysteresis (Threshold Trigger) | Anti-chatter around cutoff | 5–50 counts (50 g–500 g) |
| Sensor refresh time | LOGO! AI filter | 250 ms (fixed for base module AI) |
| AM2 input filter | Smooths noisy signal | 0.5 s, 1 s, 2 s, 4 s, 8 s |
| Amplifier gain | Overall scale | 25–35 (depending on conditioner calibration) |
| Tare debounce time | Rejects button bounce | 50–500 ms |
| Fill valve cut-off anticipation | Compensates for material in-flight | 0–50 counts (0–500 g) |
9.5 Overfill Protection
A secondary safety check should be implemented regardless of the tare method. Place a second Analog Threshold Trigger that compares the gross amplifier output to a hard-coded maximum (e.g., 3500 representing 35.00 kg, which is 5 kg above the rated full scale). If the gross weight exceeds this limit for more than 500 ms, the overfill output energizes an alarm relay and locks out the fill valve. This protects the bag from rupture if the primary threshold fails.
Additionally, implement a maximum fill-time watchdog. Start a timer when the fill valve opens; if the gross weight does not reach the cutoff threshold within, e.g., 10 seconds, force the valve closed and trigger a "fill timeout" alarm. This catches material bridging, empty supply hopper, and valve failures.
10. Troubleshooting Matrix
| Symptom | Probable Cause | Diagnostic Step | Corrective Action |
|---|---|---|---|
| Amplifier output stuck at 0 | Wiring reversed or excitation missing | Measure EX+ to EX- at conditioner; should be 5 V or 10 V | Restore excitation |
| Amplifier output saturated at 3000 | Load cell overloaded or wiring shorted | Remove load, observe amplifier output | Reduce load or repair wiring |
| Tare value drifts between cycles | Mechanical play in load cell mounting | Tap the platen and watch the amplifier output | Retighten mounting hardware |
| Fill valve chatters at cutoff | Hysteresis too small | Observe Q1 in Online Test | Increase hysteresis to 20–30 counts |
| Tare value negative | Tare button pressed with weight on the cell | Check the sequence: tare must be pressed with bag placed but no product | Add a Cycle Start gate that prevents fill until tare is positive |
| Cutoff threshold not updating | Variable Threshold not enabled or firmware too old | Check LOGO! firmware version on the Web Server page | Update firmware to 1.08.xx or later |
| Reading noisy | Electrical interference | Observe signal on oscilloscope at the LOGO! AI terminal | Add AM2 input filter, reroute cable, add ferrite |
| Bag weight varies more than ±100 g | Air pressure in fill valve unstable | Log the amplifier output during fill | Install pressure regulator on the fill valve supply |
| LOGO! goes into Stop mode on tare button | Short-circuit on I1 | Disconnect I1 and measure | Repair wiring |
| Recipe does not load from SD card | SD card not formatted or recipe not exported | Verify SD card is detected under Diagnostics → SD Card | Re-export the recipe from LOGO! Soft Comfort |
| Message text shows "####" | Variable value out of display range | Check the variable value in Online Test | Recalculate the display format (e.g., 0.00 instead of 0.000) |
| Overfill alarm triggers immediately | Overfill threshold too low for current tare | Check that overfill threshold is set relative to full scale, not net weight | Set overfill threshold to 3500 (35.00 kg gross) |
11. Cross-Platform Scaling Reference
The 0–1000 internal representation used by the LOGO! is a common pattern across small-format logic relays and compact PLCs. Beckhoff's EL4374 EtherCAT terminal documents the equivalent scaling behavior for its analog input channel, including the dynamic-range restriction that occurs when tare is applied (see Tare - Beckhoff Information System). The Beckhoff documentation explicitly notes: "When using tare, the value output in the channel is shifted, which leads to a restriction of the dynamic range in the positive or negative direction." This is a useful sanity check for the LOGO! implementation: if the tare value exceeds 20 % of full scale (i.e., 6 kg on a 30 kg cell), consider reducing the bag-handler residue or repositioning the load cell.
Omron's general-purpose scaling guidance, while written for CP1W and NX-series analog modules, applies to the LOGO! architecture as well (see How can I scale an analog input or output? - Omron). The core principle is the same: the raw digital value (0–4000, 0–8000, or 0–1000 depending on the module) is mapped to engineering units by a linear equation Engineering = (Raw - Raw_Zero) × (Eng_FullScale - Eng_Zero) / (Raw_FullScale - Raw_Zero) + Eng_Zero. The LOGO!'s Amplifier block performs this calculation in a single block with Gain and Offset parameters.
For users migrating to a Siemens S7-1200 or S7-1500 platform, the analogous blocks are the analog input channel configuration in TIA Portal (Input scaling in the device configuration) and the NORM_X / SCALE_X instructions in the program. The tare function can be implemented as a single subtraction after scaling, using a retentive DB tag to hold the tare value across power cycles. The S7-1200 SM 1231 AI module supports 13-bit resolution (±10 V range), which provides 2.4 mV LSB and effectively 5 g resolution on a 30 kg cell, an improvement over the LOGO!'s 10 mV LSB.
12. Frequently Asked Questions
Can the tare value persist across a power cycle?
Yes. The Latch block stores its value in the LOGO!'s retentive memory when the marker word (MW) is configured as retentive (Rem = On in the block properties). After a power cycle the tare value is retained; however, the operator should always press the tare button at the start of a new batch to capture the actual empty-bag weight, which may have changed due to bag supplier variation.
What is the maximum tare value the LOGO! can capture?
The Analog Amplifier output is a 16-bit signed integer (-32768 to +32767). With a gain of 30 and a 0–10 V sensor the full-scale output is 30000. A tare value up to 30000 (300.00 kg) can be captured, but for a 30 kg load cell the practical limit is the load cell's calibrated full scale. Exceeding 20 % of full scale (6 kg on a 30 kg cell) should trigger a diagnostic alarm because the scale's effective dynamic range is reduced, as also documented for the Beckhoff EL4374 EtherCAT terminal.
Does the LOGO! support negative tare (subtract a known fixture weight)?
Yes. Use a Math block with function "A × -1" between the amplifier output and the Latch block to invert the polarity. The resulting tare value can be added to the target weight to subtract the fixture. For example, a 0.5 kg fixture would produce a tare of -50 (in engineering ×100 units), and the cutoff sum would be 500 + (-50) = 450, meaning the fill valve closes at 4.50 kg gross / 5.00 kg net.
How fast can the tare capture be performed?
The LOGO! AI refresh is 250 ms on the base module. The Latch block updates on the next scan after the edge trigger, typically within 50–100 ms. Total tare latency is therefore 300–350 ms, which is acceptable for a bag-filling cycle that runs 2–5 seconds. If faster response is required, switch to an AM2 analog expansion module with a 0.5 s input filter (faster filters are not available on the AM2).
Can the tare value be displayed on a LOGO! TD or LOGO! TDE text display?
Yes. Open the LOGO! message configuration, add a message text that references the marker word holding the tare value, and enable the numeric display. The display can show the gross, tare, and net values side by side if the amplifier output is also referenced. Use the format string "0.00" so the internal ×100 values appear as 1.23 kg, 0.25 kg, 5.25 kg on the TD.