您现在的位置是:首页 > PLC技术 > PLC技术

STL编程语言中脉冲定时器

来源:艾特贸易2017-06-05

简介启动一个脉冲定时器的完整的 STL 程序如下: A Enable_input; FR Timer t; A Start_input; L Duration; SI Timer; A Reset_input; R Timer; L Timer; T Binary_time_value; LD Timer; T BCD_time_value; A Timer; = Timer_status; 采用 S

    启动一个脉冲定时器的完整的STL程序如下:

   A    Enable_input;

   FR    Timer t;

   A    Start_input;

   L    Duration;

   SI    Timer;

   A    Reset_input;

   R    Timer;

   L    Timer;

   T    Binary_time_value;

   LD    Timer;

   T    BCD_time_value;

   A    Timer;

   =    Timer_status;

    采用SCL,调用脉冲定时器编程如下:

    BCD_time_value:=S_PULSE  (

   T_NO=Timer,

   S    = Start_input,

   TV  =Duration.

    R = Reset_input,

   Q    = Timer_status,

   BI  :  =Binary_time_value),