(*************** QuickLD compiler **********************)
(*************** Copyright ICS Triplex ISaGRAF *********)
(*************** ST ************************************)

(*************** Rung **********************************)
(**)
(*Label :*)(**)
__EDTB1 := TRUE ;
IF __EDTB1 THEN
(* FB call: BX13_TCPSts *)
BX13_TCPSts_1(IPADRESS, UNITID) ;
__EDTB2 := BX13_TCPSts_1.System_error ;
ACTUAL_WEIGHT := BX13_TCPSts_1.Actual_weight ;
TARE_WEIGHT := BX13_TCPSts_1.Tare_weight ;
GROSS_WEIGHT := BX13_TCPSts_1.Gross_weight ;
DATA_OK := BX13_TCPSts_1.Data_OK ;
MOTION_DETECTOR := BX13_TCPSts_1.Motion_detector ;
GROSS_NET := BX13_TCPSts_1.Gross_net ;
PROCESS_ERROR := BX13_TCPSts_1.Process_error ;
CENTER_OF_ZERO := BX13_TCPSts_1.Center_of_zero ;
ADC_OUT_OF_RANGE := BX13_TCPSts_1.ADC_out_of_range ;
ADC_OVER_RANGE := BX13_TCPSts_1.ADC_over_range ;
ADC_UNDER_RANGE := BX13_TCPSts_1.ADC_under_range ;
IN_PROGRAMMING_MODE := BX13_TCPSts_1.In_Programming_mode ;
LOW_HIGH_VOLTAGE_DETECTED := BX13_TCPSts_1.Low_High_voltage_detected ;
CALB_STATUS_LOW := BX13_TCPSts_1.Calb_Status_LowByte ;
CALB_STATUS_HIGH := BX13_TCPSts_1.Calb_Status_HighByte ;
RD_TARGET_VALUE := BX13_TCPSts_1.Target_value ;
RD_COARSE_VALUE := BX13_TCPSts_1.Coarse_value ;
RD_FINE_VALUE := BX13_TCPSts_1.Fine_value ;
QUANTITY := BX13_TCPSts_1.Quantity ;
TOTAL := BX13_TCPSts_1.Total ;
RD_DIS := BX13_TCPSts_1.Digital_Input_Status ;
RD_DOS := BX13_TCPSts_1.Digital_output_status ;
ELSE
__EDTB2 := FALSE ;
END_IF ;

(*************** Code for the end of Rung **************)


(*************** Rung **********************************)
(**)
(*Label :*)(**)
__EDTB3 := TRUE ;
IF __EDTB3 THEN
(* FB call: BX13_TCPCmd *)
BX13_TCPCmd_1(IPADRESS, UNITID, CONTROL_COMMANDS, WR_TARGET_VALUE, WR_COARSE_VALUE, WR_FINE_VALUE, CALIBRATION_COMMANDS, SPAN_CALB_VALUE, WR_DOS) ;
END_IF ;
__MO_BX13_TCPCMD_1 := __EDTB3 ;

(*************** Code for the end of Rung **************)


(*************** Code for the end of File **************)
__GL __LG0000 ;



(*************** Local Symbols table *******************)
(* __EDTB1 *)
(* __EDTB2 *)
(* __EDTB3 *)

