10/29/2014 10:41 AM | |
Posts: 122 Rating: (1) |
Hello Experts, I am new to SCL of Siemens. But have used the structured text in other IDE's. Here is a question from me. I have created a project and had inserted a simple code in the OB block as I have shown below. Though I make the Input := True in the hardware but the output does not show any result in the hardware as well as in the Variable watch table. And more over when I click the spectacle icon on the top, in normal case the corresponding window neighbouring to the code should be active. But it is not active (I have attached a snap shot of it). I have declared the variables in the Data_block_2 as shown in the code below. I am not able to see the output1, as well as the Q and ET of the function IEC_Timer_0_DB. Can any one give me the reason and also can any one give an idea how to rectify it. Looking forward to hear from you. With regards Johannes IF "Input1" = TRUE THEN "Output1" := True; "IEC_Timer_0_DB".TON(IN:="Input1", PT:="Data_block_2".PresetTime, Q=>"Data_block_2".Q, ET=>"Data_block_2".ElapsedTime); END_IF; AttachmentNeuer ZIP-komprimierter Ordner.zip (330 Downloads) |
10/30/2014 2:54 PM | |
Joined: 7/7/2010 Last visit: 11/15/2024 Posts: 15402 Rating: (2443)
|
What type of OB is OB57? Is it a cyclic OB? If not, the timer will not work. |
science guy |
|
Follow us on