Good evening! I am currently in the process of grasping the CTI 505 Workshop software and PLC's, focusing on understanding the Special Functions. I am seeking assistance in decoding this Special Function code: V800_ = (V3733-V4346 + V4348) / 10 + V812. I am aware that operations within the parentheses are prioritized, but I am curious about the direction of execution in this code, ultimately resulting in V800. This code involves scaling input data, specifically V800, to produce a binary result in WY27. While the scaling process seems straightforward, I am interested in better understanding the significance of WY27 in this context. The parameters for scaling include a low limit of 0.0 and a high limit of 100.0, with a 20% offset. Thank you for any assistance provided in clarifying these aspects of the code.
Cydog recently expressed his desire to gain a deeper understanding of the CTI 505 Workshop software and PLCs, particularly focusing on the Special Functions involved. Seeking assistance, he shared a code snippet for the Special Function: V800_ = (V3733-V4346 + V4348) / 10 + V812. The order of operations in this code is from within the parentheses first, with the end result being stored in V800. This involves scaling input data, with V800 representing the scaled result in binary form, specifically referencing WY27. When evaluating the first code, it's crucial to note the absence of a MATH statement that affects the resolution of the integer value in V800 due to the divide by 10 operation. Consider using a float value instead to retain resolution. The Scale function mentioned operates on raw values from 0 to 32000, transforming them to fit within a specified range. In the case of WX, an analog input word, values are scaled from 0 to 100 with a 20% offset taken into account for signal adjustments. Moreover, the presence of a bipolar setting or usage of unscale functions for WY output words indicate varying requirements based on the signal type being processed. In instances where WYs are analog word outputs, the focus shifts towards unscale operations to adjust values accordingly. This involves converting a scaled value from 0 to 100 back to the original range of 6400 to 32000, with a 20% offset considered for accurate signal processing.
Thank you very much for your assistance.
Hello RobertMee, I was wondering if you have found any CTI, Siemens, or integrators who have published manuals detailing the CTI 505 Workshop/PLC Special Function Code. As with many programming languages, I find all of them challenging except for ladder logic. Your assistance is greatly appreciated. Thank you.
Access Chapter 7 of the Siemens Industry PDF document at the following link: https://cache.industry.siemens.com/dl/files/059/17517059/att_108858/v1/505-8104-5.pdf
Hello! The Special Function code you've posted is a typical example of an arithmetic operation in PLC coding. To understand the direction of execution, follow the typical mathematical order: operations inside brackets are done first then division and finally addition to V812. The result of this operation is stored in V800. Regarding your question about WY27, traditionally, W stands for 'word' and Y typically refers to an output, so WY27 would be a word-sized output where the binary result of the scaling is stored. The significance of WY27 essentially depends on its use in the rest of your PLC program; it could be used to trigger specific actions based on the result. The scaling parameters you've given (low limit 0.0, high limit 100.0) with a 20% offset suggest that the program is adjusting the range of the possible input values allowing the program to deal with data that is 20% above or below the given range. These parameters are used to maintain the robustness of your PLC program. I hope this clarifies your questions.
Hello! This indeed seems like a case of data scaling and normalization based on the code you're working with. The expression within the parentheses is computed first due to the operator precedence rule (BODMAS). As for WY27, it's likely to be a memory address where the result is stored after the calculation; this is typical in PLC's. Depending on the role WY27 plays in your program, it might represent a particular output or status. As you mentioned, the scaling process ranges from 0.0 to 100.0, which is commonly to ensure the control variable doesnβt exceed control limits. The 20% offset seems to be a safety boundary to protect the system from over scaling. It prevents the surge beyond expected high limit. But to be more precise, the role of parameters V812, V3733, V4346, and V4348 would provide a better context. These numbers could represent specific memory locations that are used for intermediate calculations or control flags. Understanding their role might give you deeper insights into your code's specific workings.
Hi there! Glad to see someone diving into the CTI 505 Workshop software and PLC's. The direction of execution in your code is indeed left to right after accounting for the operations inside the parentheses due to operator precedence. As for your question about WY27, it's likely that it's the output register for the binary result. In the context of scaling, WY27 might be representing some distinct physical state of your equipment based on the input. The 0-100 range and the 20% offset suggest this code might be used to account for some type of operational overhead or safety margin in the system. The scaling allows you to map the range of inputs (V800) to the binary output (WY27) effectively. This decoding of the special function could be greatly enlightening in monitoring system performance or troubleshooting issues. Keep going, the world of PLCs is a challenging and a fun one!
β Work Order Management
β Asset Tracking
β Preventive Maintenance
β Inspection Report
We have received your information. We will share Schedule Demo details on your Mail Id.
Answer: - This code is used for scaling input data to produce a binary result in WY27. It involves mathematical operations and prioritization within the parentheses.
Answer: - The direction of execution in the code is determined based on the order of operations, following standard mathematical rules such as parentheses first, then multiplication/division, and finally addition/subtraction.
Answer: - WY27 represents the binary result obtained after scaling V800 based on the specified parameters. It reflects the scaled value within the defined limits and offset.
Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.