下面是老外用STL编写的报警程序看不懂,请解释

A     "DB61".C08177ST1.Jump

      JCN   P1

      CALL  FB     2 , DB2
       DB_number               :=2
       OP_Selection            :="DB81".ST1_OP_Selection
       Start_welding           :="DB81".STEP2_0
       Seconde                 :=M255.5
       Ten_of_seconde          :=M255.0
       Tank_detection          :="st1 pipe placed right 2"
       In_step_mode            :="DB81".ST1_IN_STEP_MODE
       Step_mod_forw_autorisat :="DB81".ST1_STEP_MOD_FORW
       Acknowledge_step        :=M90.3  //DB61.DBX5.0
       Waiting_step            :=M90.4  //DB61.DBX5.1
       Rev_heat_carr_init_step :="DB81".STEP0_5
       Rev_gripper_init_step   :="DB81".STEP0_3
       With_auto_loading       :=FALSE  //DB61.DBX200.1
       EndAutoLoadClosGrippStep:="DB61".C08177ST1.EndAutoLoadClosGrippStep
       Gripper_matching_timer  :=T152
       Gripper_heating_timer   :=T153
       Fusion_timer            :=T154
       Cooling_timer           :=T155
       Heating_elem_match_timer:=T156
       Heating_elem_heat_timer :=T157
       Synchro_gripp_heat_elem :=T158
       Open_Time_Timer         :=T159
       Power_on                :="st1 power off(button)"
       Reset_station_operation :="DB61".C08177_ST1.Reset_station_operation
       Auto_load_in_progress   :="DB61".C08177ST1.Auto_load_in_progress
       Default_acknowledge     :="DB61".C08177_ST1.Default_acknowledge
       Part_detection          :="st1 rov present"
       Step_mode_forward       :="DB81".ST1_STEP_ADV
       Step_mode_reverse       :="DB81".ST1_STEP_RET
       Open_gripper_PB         :=FALSE
       Heat_Grip_Carr_forward  :="st1 transfer heater wp"
       Heat_Grip_Carr_revers   :="st1 transfer heater pp"
       Heating_gripper_flag    :="st1 gripper hp"
       Heating_heat_elem_flag  :="st1 mobile hotplate hp"
       Cooling_gripper_flag    :="st1 gripper wp"
       Gripper_reversed        :="st1 gripper pp"
       Heat_elem_reversed      :="st1 mobile hotplate pp"
       Gripper_opened          :="st1 gripper open"
       Fixed_heat_elem_temp    :="DB61".Temp_Detect_ST1F
       Mobil_heat_elem_temp    :="DB61".Temp_Detect_ST1M
       Gripper_pressure_input  :="DB61".C08177ST1.Gripper_pressure_inputC
       Gripper_counter_press   :="DB61".C08177ST1.Gripper_counter_pressC
       Heat_elem_pressure_input:="DB61".C08177ST1.Heat_elem_pressure_inpuC
       Heat_elem_count_press   :="DB61".C08177ST1.Heat_elem_count_pressC
       Rev_Gripp_init_ord_press:="DB61".C08177ST1.Rev_Gripp_init_ord_press
       Fwd_Gripp_init_ord_press:="DB61".C08177ST1.Fwd_Gripp_init_ord_press
       Rev_Heat_init_ord_press :="DB61".C08177ST1.Rev_Heat_init_ord_press
       Fwd_Heat_init_ord_press :="DB61".C08177ST1.Fwd_Heat_init_ord_press
       Rev_Gripp_ord_low_press :="DB61".C08177ST1.Rev_Gripp_ord_low_press

最佳答案

"DB61".C08177ST1.Jump变量为1, 执行FB2调用,下面是FB2接口参数赋值;"DB61".C08177ST1.Jump变量为0,则跳转到P1标签处执行;要看懂FB2,需要打开FB2并对应接口参数看FB2的语句

提问者对于答案的评价:
谢谢楼主的分析指点

原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc245485.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2018年12月2日
下一篇 2018年12月2日

相关推荐