(0)| 11/13/2014 10:04 PM | |
|
Joined: 1/28/2009 Last visit: 12/27/2025 Posts: 6889 Rating:
|
Hello again, Call FB41 and assign an instance DB to it say "DB41".Writing to peripheral input addresses is not generallly possible, so you can simulate a input from a field device from an HMI.Assign the variable of slider to DB41.DBD10 that is a floating point variable regards PV_IN parameter in FB41(PID algorithm).About scaling, I think it is goood to map the slider to 0~100 and also consider same range for set-point.
Please , read more the online manual plus check the clustered threads here : HD_PID Control Package - FB41 Samples And this is what you shoud start from and develop more: // write from HMI to this address DB41.DBD 10 CALL "CONT_C" , DB41 COM_RST := MAN_ON := PVPER_ON:=FALSE P_SEL := I_SEL := INT_HOLD:= I_ITL_ON:= D_SEL := CYCLE := SP_INT := PV_IN := PV_PER := MAN := GAIN := TI := TD := TM_LAG := DEADB_W := LMN_HLM := LMN_LLM := PV_FAC := PV_OFF := LMN_FAC := LMN_OFF := I_ITLVAL:= DISV := LMN := LMN_PER := QLMN_HLM:= QLMN_LLM:= LMN_P := LMN_I := LMN_D := PV := ER := NOP 0 I hope this helps, Hamid Hosseini |
Follow us on