Industry Online Support
Technical Forum
1/31/2013 10:16 PM | |
Joined: 1/28/2009 Last visit: 12/12/2024 Posts: 6858 Rating: (1365) |
Hello , If you are looking for time between 2 successive calls of OB3X(cyclic interrupts), try to use "OB3X_EXC_FREQ"(Local data) as INT variable and indicates time in millisecond.That can converted to TIME with proper conversion block.Check here for more information: Cyclic interrupt organization blocks (OB 30 to OB 38) Best regards Hamid Hosseini |
Last edited by: hdhosseini at: 1/31/2013 10:17 PM |
|
2/1/2013 10:19 AM | |
Joined: 9/23/2005 Last visit: 12/26/2024 Posts: 4376 Rating: (1458)
|
Hi, for S7-300/400 you can get the cicle time information by OB internal variables: - OB3x_EXC_FREQ for ciclic interrupt OB (like hdhosseini, already posted). Remember, however, that this time is constant and set in project time, in the CPU properties. -OB1_PREV_CYCLE for OB1 For S7-1200 the time setting is done by creating the OB, and could be read at its properties (right mouse clik on OB, properties). Note,also, that the S7-1200 OB doesn't have these variables So if you need to measure the Cicle time of a OB, you can also place a timer (e.g. with a big setpoint) and measure the difference of ET between two variables. |
Denilson Pegaia |
|
This contribution was helpful to1 thankful Users |
Follow us on