Mastering TON Count Time Control in Studio 5000: Expert Tips for Using 0-10VDC Analog Inputs

Question:

Studio 5000 Version 30: Expert Tips for Controlling TON's Count Time Using Analog Inputs (0-10VDC) As someone who's more skilled in troubleshooting than in programming, I’m seeking guidance on effectively managing a TON (Timer ON Delay) count time through an analog input signal ranging from 0 to 10 VDC. I would greatly appreciate recommendations on best practices, whether it be in ladder logic programming or function block diagrams. Thank you for your assistance!

Top Replies

**Step 1: Convert Analog Signals to Desired Timer Values** The first step in this process involves transforming your analog signals into the timer values you wish to achieve. To effectively scale tags between various ranges, use the following formula: **Slope Calculation:** Slope = (Output_Min - Output_Max) / (Input_Min - Input_Max) **Output Calculation:** Out = (Input - Input_Min) * Slope + Output_Min **Step 2: Transfer Calculated Output to Timer PRE** In this step, you will need to transfer the computed output into the timer's PRE value. Be sure to consider whether you want to update this value continuously or only when the timer is inactive. This approach ensures optimal control and precision in your timing operations.

Let's consider a scenario where your 0-10V input is linked to a timer preset ranging from 0 to 10 seconds. Since your timer preset is represented in milliseconds, this translates to 0-10V corresponding to 0-10,000 milliseconds. The first step is to convert your analog input into usable values. You can achieve this by utilizing a straightforward CPT instruction or by exploring this website for the RA-provided SCP (Scale with Parameters) instruction. This tool enables you to specify the minimum and maximum values for raw data as well as for the scaled output. Once you've obtained a scaled value, the next step is simply to assign it to your timer preset using the command: `MOV Scaled_Value Timer.PRE`. By optimizing your analog input and utilizing scaling techniques, you can effectively manage timer presets for various applications.

It's crucial to always perform a range check on the value before transferring it into the Timer's preset register. If your analog input yields a slightly negative value and you inadvertently input this negative value into the timer preset, it will trigger an error—much like a dreaded red-light fault! Unlike Dr. Who, Rockwell systems can't rewind time to fix mistakes. To avoid these undesirable situations, consider using a LIM (Limit) instruction; however, this isn't the optimal solution. Instead, you should constrain the value within specified limits, which can be easily achieved with a couple of programming rungs: 1. Use the LES (Less Than or Equal to) instruction to check if the value is less than or equal to 0. 2. Use the MOV (Move) instruction to set it to 0 if it is. 3. Then, use the GRT (Greater Than) instruction to check if the value exceeds the permitted maximum, and if so, use another MOV instruction to set it to that maximum value, denoted as xxxx. These two rungs will effectively identify and correct values that fall outside the allowed range, allowing you to safely execute the MOV command to transfer the value into the Timer.PRE register. By implementing these techniques, you can enhance the reliability of your timer presets and minimize errors.

I spent around an hour experimenting with it today. I believe I understand the main concept, but I still need to troubleshoot a few issues. I appreciate the helpful tips I've received so far, and I'm certain I’ll have more questions as I continue to explore. Thank you!

Do I need to utilize the MOV to input the engineering values into PRE, or can I simply "tag" them in? I have experimented with both methods, but unfortunately, neither has been successful so far. I believe I understand the reason behind this. My testing time with the actual rack has been limited because it is currently in operation. Additionally, my company invested in the full version of Studio 5000, which does not include the emulate feature. I've received a quote of $1500 for the emulate option—yikes!

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

You must be a registered user to add a comment. If you've already registered,
sign in. Otherwise, register and sign in.

Frequently Asked Questions (FAQ)

FAQ: Best practices include:

Answer: - Accurately scaling the analog signal to ensure it corresponds to the required time range for the TON instruction. - Using comments and labels in your ladder logic for clarity and maintenance ease. - Testing the logic with simulated inputs to verify correct operation before deploying it in a live environment.

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  →