Fanuc Keep Relay Parameters Exclusive Link
Fanuc Keep Relays (K-parameters) are non-volatile PMC (Programmable Machine Control) parameters used to toggle machine-specific functions. Unlike standard NC parameters that control motion, keep relays act as software "switches" that remain in their state (0 or 1) even after power is turned off. Core Functionality
Keep relays are used by machine tool builders (MTBs) to define machine behavior without rewriting the PLC ladder. They are typically used for:
Feature Selection: Enabling or disabling options like a chip conveyor, high-pressure coolant, or an optional tool magazine.
Interlock Control: Bypassing or enforcing safety interlocks, such as door locks or spindle start conditions.
Operational Modes: Switching between different tool change (ATC) patterns or pallet change (APC) sequences. Common Keep Relay Addresses
While addresses vary by machine builder, standard Fanuc-defined ranges often include: K0 – K15: General bit parameters for machine sequences. K16: Often used for keep-type memory control.
K17 – K19: Reserved for PMC managing software data; these should generally not be used for custom sequences.
K900+: High-range addresses often reserved for internal Fanuc system functions. How to Access and Modify Keep Relays
Modifying these parameters requires entering "Parameter Write Enable" (PWE) mode first. Enable Parameter Write: Press the MDI button on the control. Press the OFFSET/SETTING function key.
Navigate to the "Setting" page and change PARAMETER WRITE from 0 to 1. Navigate to PMC Maintenance: Press the SYSTEM function key. Press the [PMC] soft key, then [PMCPRM] or [PMC PARAM]. Press the [KEEPRL] or [KEEP RELAY] soft key. Edit the Parameter:
Use the cursor keys to find the specific K-address (e.g., K0005). Bits are numbered 7 6 5 4 3 2 1 0 from left to right. Type the new bit value (0 or 1) and press INPUT. Reset Safety:
Return to the OFFSET/SETTING screen and set PARAMETER WRITE back to 0. Machine-Specific Examples fanuc keep relay parameters exclusive
Turret Rotation (K17.5): On some turning centers, changing this can allow the turret to rotate without returning to home position, reducing cycle times.
Chuck Clamp (K7.6): Can be used to toggle whether the machine checks for a clamp signal before starting the spindle.
Internal Programmer (K17.1): Toggling this bit may allow or prevent on-machine editing of the PMC ladder.
Warning: Keep relay definitions are unique to your machine's MTB. Always refer to the Fanuc Maintenance Manual or the machine-specific electrical manual before making changes to avoid unintended mechanical movements. Fanuc Keep Relay Parameters Overview | PDF - Scribd
Title: The Guardians of Automation: The Criticality and Application of FANUC Keep Relay Parameters
In the intricate ecosystem of FANUC CNC systems, the distinction between volatile memory and non-volatile memory is the line between a machine that remembers its purpose and one that resets to oblivion upon reboot. At the heart of this distinction lies the "Keep Relay" (often designated by addresses beginning with the letter 'K'). While standard Relays (R, D, or E addresses) are essential for the logical flow of a program, Keep Relay parameters occupy an exclusive and critical tier within the ladder logic architecture. They serve as the system’s long-term memory, preserving vital operational states and configuration settings even when power is removed. Understanding the exclusive nature of Keep Relay parameters is essential for any engineer or technician aiming to maintain system integrity and prevent catastrophic data loss.
The primary defining characteristic of a Keep Relay is its non-volatility. In standard relay logic, when the power supply to the CNC unit is turned off, all relay coils are de-energized, and their contacts revert to their default states. This is acceptable for transient signals—such as a command to open a chuck or start a spindle—but it is unacceptable for data that defines the machine’s personality. Keep Relays solve this by storing their status (ON or OFF) in non-volatile memory backed by a battery or solid-state memory retention. This exclusivity means that if a Keep Relay is set to '1' (ON), it will remain '1' even after the machine is shut down, shipped across the country, and restarted. This unique property makes them indispensable for storing "latched" states, such as whether a maintenance interval has been reached, whether a specific optional function is enabled, or the last position of a tool changer.
Furthermore, the exclusivity of Keep Relay parameters extends to their role in system configuration and customization. Unlike standard internal relays, which are purely for the programmer’s logical processing, Keep Relays often bridge the gap between the PMC (Programmable Machine Controller) and the CNC system parameters. In many FANUC architectures, specific Keep Relays are hard-coded or reserved for system-level functions. For example, a specific bit in a Keep Relay might be used to enable a custom macro interface or activate a specific safety interlock that must remain active regardless of power cycles. In custom machine building, these relays are frequently used to create "personality bits"—settings that allow a single generic ladder program to adapt to different machine variants (e.g., a lathe versus a mill) by simply flipping a Keep Relay switch.
However, the power of Keep Relays comes with a significant engineering responsibility: the risk of "latched" logic errors. Because these relays retain their state, they do not naturally reset to a "safe" default state upon power-up like standard relays do. If a Keep Relay is used to latch an error state or an unsafe condition, simply cycling power will not clear the fault; the machine will wake up in an error state. Therefore, the logic surrounding Keep Relays must be exclusive and rigorous. It usually requires an explicit "unlatch" or reset condition in the ladder logic. If a technician mistakenly uses a Keep Relay for a transient signal (like a pulse to trigger a single cycle), the machine may get stuck in that cycle indefinitely. This highlights the necessity for programmers to treat Keep Relays not as general-purpose variables, but as permanent registers reserved for specific, persistent data.
The maintenance of Keep Relay parameters also requires a specialized approach compared to standard logic. In the event of a battery failure or a full memory clear, the states of these relays are lost, potentially rendering the machine inoperable until the correct "bit patterns" are restored. This underscores the importance of documentation and backup. A skilled technician knows that a backup of the PMC SRAM (Static Random Access Memory) is useless without a record of the Keep Relay states. Consequently, many facilities maintain a "Parameter Sheet" exclusively listing the active Keep Relays and their intended functions, treating them with the same reverence as the servo tuning parameters.
In conclusion, Keep Relay parameters
In the complex world of Fanuc CNC controls, Keep Relay (K) parameters are essential tools for machine tool builders (MTBs) and maintenance technicians. These non-volatile memory bits are designed to control specific machine behaviors, enable or disable hardware options, and manage complex PLC (Programmable Machine Controller) logic.
The term "exclusive" in the context of Fanuc keep relays typically refers to system-reserved addresses or bits with specific, non-customizable functions that are critical to the CNC's internal operation or safety. Understanding Fanuc Keep Relays
Keep relays differ from standard diagnostic bits because they retain their state—ON (1) or OFF (0)—even after the machine is powered down.
User Keep Relays (K0–K19): These are commonly used by machine builders to define machine-specific options, such as enabling a chip conveyor, bypassing a door interlock for maintenance, or configuring the Automatic Tool Changer (ATC) pattern.
System/Exclusive Keep Relays (K900–K999): These higher-range addresses are often reserved by Fanuc for system-level functions. For example, K928 and K929 may control critical safety circuit interfaces. Unlike user bits, these are often "exclusive" to the system logic and should only be modified under direct manufacturer guidance. Common Uses for Exclusive Logic
While "exclusive" can refer to reserved system addresses, it also describes logic where certain bits are mutually exclusive.
Safety Interlocks: Exclusive bits may ensure that a tool changer and a spindle cannot operate simultaneously.
Machine Options: MTBs often use keep relays to "lock" or "unlock" specific machine features. For instance, K17.1 might be exclusively reserved for maintenance procedures, such as backing up data or resetting turret positions.
Ladder Access: Certain keep relays, like K19, can be used as an exclusive flag to enable ladder editing or internal programmer functions. How to Modify Keep Relay Parameters
Modifying these parameters requires precise steps to bypass the CNC's internal protection. Enable Parameter Write (PWE): Switch the machine to MDI mode.
Press the OFFSET/SETTING key and locate the SETTING soft key. Conclusion The Fanuc Keep Relay parameter is exclusive
Change "PARAMETER WRITE" from 0 to 1. The machine will likely trigger an "ALM 100" (Parameter Write Enable) alarm, which is normal during this process. Access the Keep Relay Screen: Press the SYSTEM hard key.
Use the right arrow (expansion) soft keys until you see PMC, then select PMCPRM or PMC MAINTENANCE. Select the KEEPRL soft key to view the bit table. Input the Data: Navigate to the desired address (e.g., K17). Type the new bit value (0 or 1) and press INPUT.
Crucial: Once finished, return to the SETTING screen and change PARAMETER WRITE back to 0. Troubleshooting "Exclusive" Lockouts
If a keep relay refuses to change or reverts after a power cycle, it is often because:
Ladder Logic Coil: The bit is being written to by a "coil" in the PMC ladder logic. In this case, the software overrides any manual changes.
Mode Restrictions: Some machines require the Emergency Stop to be depressed or the PMC to be stopped before certain system bits can be modified. Fanuc PMC - Keep Relays (K Parameter) Explained in English
Conclusion
The Fanuc Keep Relay parameter is exclusive not by accident but by architectural design. It is functionally exclusive, speaking only to the ladder logic, not to G-code. It is access exclusive, hidden behind service menus and passwords. It is application exclusive, giving each machine builder the power to define binary behaviors that standard parameters cannot. And it is strategically exclusive, serving as both a diagnostic tool and a security gate.
In the broader ecosystem of CNC parameters, where axis gains and feed-forward coefficients often steal the spotlight, the humble Keep Relay remains the quiet, exclusive gatekeeper of machine logic. Understanding its unique role is the mark of a true controls professional—one who recognizes that sometimes the smallest bits of memory carry the most significant authority over a machine’s soul.
The Verdict Up Front
The practice of using "Exclusive" Keep Relays (commonly utilizing the non-volatile K-parameters or specific D-Data addresses) is essential for robust machine operation, but it is a "high-risk, high-reward" feature.
When implemented correctly by a skilled integrator or engineer, it saves time and ensures machine safety. However, if managed poorly, it is a primary source of "ghost faults" and data loss. The exclusivity of these parameters—meaning they are reserved for specific system functions and not open for general logic—is the backbone of FANUC’s reliability.
❌ Don’ts:
- Don’t assume a bit is free just because it’s not mentioned in the operator’s manual. Many custom ladder functions use undocumented K bits.
- Don’t change a K parameter while the machine is in auto cycle unless the builder explicitly states it’s safe. Some ladder logic reads K bits only at power-up.
- Don’t share the same K bit for complementary functions unless using a “mask” (multiple bits combined).