(0)| 9/9/2011 7:04 AM | |
|
Joined: 1/28/2009 Last visit: 1/5/2026 Posts: 6892 Rating:
|
Dear Martins_Eng If you want to only transfer a value from HMI to set point section of FB41,it is easily possible by assigning the absolute address assigned for the setpoint in I/O field with Write access in HMI.You can also define user authentication to change the value. you have also options to generate setpoint by these 2 functions, (From modular PID control)check if they are useful:
Best regards |
| 9/11/2011 3:30 PM | |
|
Joined: 1/28/2009 Last visit: 1/5/2026 Posts: 6892 Rating:
|
Dear Martins_Eng As I understood your requirements ,you want to preselect 8 different setpoints be stored in 8 different 32bit-cells in a datablock and insert one of them according to some criteria to FB41.To do so, you may have several options such as Jump Distributor.See the following codes which is extracted from STEP7 online manual.As you may have jumps when you change the setpoints, it is much better to use a rate limiter function to change STEPs to RAMPs to avoid undesired reaction of process. [code]L MB0 //Load jump destination number into ACCU 1-L-L. JL LSTX //Jump destination if ACCU 1-L-L > 3. JU SEG0 //Jump destination if ACCU 1-L-L = 0. JU SEG1 //Jump destination if ACCU 1-L-L = 1. JU COMM //Jump destination if ACCU 1-L-L = 2. JU SEG3 //Jump destination if ACCU 1-L-L = 3. LSTX: JU COMM SEG0: * //Permitted instruction * JU COMM SEG1: * //Permitted instruction * JU COMM SEG3: * //Permitted instruction. * JU COMM COMM: * *[/code] Best regards |
Follow us on