Default Header
(header konnte nicht geladen werden)
1/6/2012 9:55 AM | |
Posts: 140 Rating:
|
Hi Experts, I need an advice on an issue. I am reading ROLL, PITCH and HEAVE values from a sensor. Based on the parameter's values I am calculating period for each of them. After getting the period of each parameter I have to implement some warnign limits corresponding to each period value. I have 9 period value for each parameter. For example roll has warning limits corresponding to period values from 3s to 11s.So at 3s period the warning limits to be implemeted will be different as for period of 4 seconds. At the moment I have made a FB to move warning limit values based on comparison of period values and I am calling same FB for Pitch and Heave also. But by doing so the Inputs of the FB look too much and if in future I need to implement more cases then these inputs will increase. Is there any other way to implement such scenario with lesser number of inputs to the FB, i want to make my FB look more compact and short. I have attached the FB call and FB itself for your reference! Please advice accordingly! Tahnks in advance!
AttachmentFB73.pdf (218 Downloads) |
1/6/2012 9:56 AM | |
Posts: 140 Rating:
|
Attached is the FC where this FB is being called for ROLL, PITCH and heave for two sensors! FB looks too long. Please suggest any other method to make it compact by some intelligent coding technique. I am beginner in Siemens PLC programming, please elaborate your solution :) Thanks!
AttachmentFC76.pdf (205 Downloads) |
Last edited by: Khyzer at: 1/6/2012 10:03 AM |
|
1/6/2012 10:42 AM | |
Joined: 1/28/2009 Last visit: 8/31/2025 Posts: 6874 Rating:
|
Dear Khyzer, All the operations simply can be implemented by using indirect addressing and loops.of course you have to store data correspond to each entry in cells of data blocks which can be accessed viaindirect addressing.Try it Also check the following: Best regards, Hamid Hosseini |
This contribution was helpful to
1 thankful Users |
Follow us on