Professional Documents
Culture Documents
C Runnt 009
C Runnt 009
2
Function Block Library ILS_CEM
Function Description Edition 07/16
Danger
! indicates that death or severe personal injury will result if proper precautions are not taken.
Warning
! indicates that death or severe personal injury may result if proper precautions are not taken.
Caution
! with a safety alert symbol indicates that minor personal injury can result if proper precautions are not
taken.
Caution
without a safety alert symbol indicates that property damage can result if proper precautions are not
taken.
Attention
indicates that an unintended result or situation can occur if the corresponding notice is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used.
A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning and operation
of a device/system may only be performed by qualified personnel. Within the context of the safety notices in this
documentation qualified persons are defined as persons who are authorized to commission, ground and label devices,
systems and circuits in accordance with established safety practices and standards.
Prescribed Usage
Note the following:
Warning
! This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG.
The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes
could violate the rights of the owner.
Siemens AG
Automation and Drives Siemens AG 2005
Postfach 4848, 90327 Nuremberg, Germany Technical data subject to change.
Siemens Aktiengesellschaft
Reference Manual Objects Running time C_RUNNT
Description of C_RUNNT 4
Type/Number 4
Calling OBs 4
Function 4
Operating principle 5
Input interfaces 5
Input/Output interfaces 6
Output interfaces 7
Time characteristics 9
Message characteristics 9
Commands 9
I/O-bar of C_RUNNT 10
OS-Variable table 12
Variable details 13
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Running time C_RUNNT Reference Manual Objects
Description of C_RUNNT
Type/Number
Module name: C_RUNNT
Module no.: FB1016
Calling OBs
C_RUNNT must be called in OB1 (MAIN_TASK).
Function
With the run-time module one can acquire running times and operating times.
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Reference Manual Objects Running time C_RUNNT
Operating principle
Input interfaces
RTLS Input Signal Basic state 0-signal
Format BOOL
If this interface has a 1-signal, then the running time is acquired.
Caution: If the structure input PV is connected, RTLS will not be evaluated any more
!
PV Input Signal
Format STRUCT
For function description, see RTLS. This interface can be connected with a structure output, e.
g. with the output of a PCS7 Driver block.
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Running time C_RUNNT Reference Manual Objects
Input/Output interfaces
RES_RTOS Date/Time for RT reset from OS Default: 16#00
Format DWORD
Interface to OS
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Reference Manual Objects Running time C_RUNNT
Output interfaces
RT_OS_O Runtime in hours Default: 0.0
Format REAL
Interface to OS
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Running time C_RUNNT Reference Manual Objects
RT_MIH_O Counted pulses (refr. every hour) (32 bit) Default: 16#00
Format DWORD
Result of the counted value in DWORD format
Prepared as interface to OS
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Reference Manual Objects Running time C_RUNNT
Time characteristics
The run sequence for the run-time module can be chosen as desired.
Message characteristics
The C_RUNNT has no Messages.
Commands
Refer to the OS variables table for the assignment of the command word.
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Running time C_RUNNT Reference Manual Objects
I/O-bar of C_RUNNT
C_RUNNT
Typ Permitted
Element Meaning Format Default Attr. HMI
e Values
Run-time in hours
RT_H REAL 0.0 IO U +
(refreshed every hour)
Run-time in seconds
RT_MIS DWORD 16#00 IO U
32 Bit DWORD
Run-time in seconds
RT_MIH 32Bit DWORD DWORD 16#00 IO U
(refreshed every hour)
Run-time in seconds
RT_MIS_O DWORD 16#00 O U
32 Bit DWORD
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Reference Manual Objects Running time C_RUNNT
Typ Permitted
Element Meaning Format Default Attr. HMI
e Values
Run-time in seconds
RT_MIH_O 32 Bit DWORD DWORD 16#00 O U
(refreshed every hour)
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Running time C_RUNNT Reference Manual Objects
OS-Variable table
C_RUNNT
PLC Data
OS Variable Description OS Data Type
Type
RES_RTOS
Date/Time for RT reset from DWORD Unsigned 32-bit value
OS
RT_OS Run-time in hours REAL 32-bit floating-point number IEEE 754
Run-time in hours
RT_H REAL 32-bit floating-point number IEEE 754
(refreshed every hour)
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc
Reference Manual Objects Running time C_RUNNT
Variable details
Internal structure of the Commands word:
COM_B10 8
COM_B11 9
COM_B12 10
COM_B13 11
COM_B14 12
COM_B15 13
COM_B16 14
COM_B17 15
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc