Cemat V 8.
2
Function Block Library ILS_CEM
Function Description Edition 07/16
Running time C_RUNNT
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage
to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices
referring to property damage only have no safety alert symbol. The notices shown below are graded according to the
degree of danger.
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.
Copyright Siemens AG 2005 All rights reserved Disclaimer of Liability
The distribution and duplication of this document or the We have reviewed the contents of this publication to ensure consistency
utilization and transmission of its contents are not permitted with the hardware and software described. Since variance cannot be
without express written permission. Offenders will be liable for precluded entirely, we cannot guarantee full consistency. However, the
damages. All rights, including rights created by patent grant information in this publication is reviewed regularly and any necessary
or registration of a utility model or design, are reserved corrections are included in subsequent editions.
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
RUNNING TIME C_RUNNT 1
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
3 Copyright Ó Siemens AG. All Rights Reserved.
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.
Copyright Ó Siemens AG. All Rights Reserved. 4
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.
The structure input PV has higher priority than input RTLS.
!
Structure variables:
PV.Value Signal Basic state 0-signal
Format BOOL
PV.ST Signal status Default: 16#FF
Format BYTE
REL_RT Release runtime acquisition Basic state 1-signal
Format BOOL
One can connect a release condition to interface REL_RT for the acquisition of the running time.
With a 0-signal at REL_RT no running time is acquired.
Additional input as Interface to the OS:
COMMAND Command word Default: 16#00
Format WORD
Interface to OS
For more information see Variable details.
5 Copyright Ó Siemens AG. All Rights Reserved.
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
RT_OS Run-time in hours Default: 0.0
Format REAL
Interface to OS
RT_H Run-time in hours refreshed every hour Default: 0.0
Format REAL
Interface to OS
RT_MIS Run-time in seconds (32-bit long) Default: 16#00
Format DWORD
Result of the counted value in DWORD format
Prepared as interface to OS (can be transferred to the OS if required)
RT_MIH Run-time in sec. (32-bit, refr. every hour) Default: 16#00
Format DWORD
Result of the counted value in DWORD format
Prepared as interface to OS (can be transferred to the OS if required)
Copyright Ó Siemens AG. All Rights Reserved. 6
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
PV_Out Runtime in hours
Format STRUCT
The structure contains the counter value in REAL format.
Structure variables:
PV_Out.Value Value Default: 0.0
Format REAL
PV_Out.ST Signal status Default: 16#80
Format BYTE
RT_OS_H Hours of the Runtime value Default: 0
Format DINT
Interface to OS
This variable contains the completed hours
RT_OS_M Minutes of the Runtime value Default: 0
Format DINT
Interface to OS
This variable contains the rest in minutes
RT_H_O Run-time in hours refreshed every hour Default: 0.0
Format REAL
Interface to OS
PV_OutH Counter value refreshed every hour
Format STRUCT
The structure contains the counter value in REAL format. In difference to RT_OS_O this value is
refreshed every hour.
Structure variables:
PV_OutH.Value Value Default: 0.0
Format REAL
PV_OutH.ST Signal status Default: 16#80
Format BYTE
7 Copyright Ó Siemens AG. All Rights Reserved.
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_MIS_O Counted pulses (32 bit long) Default: 16#00
Format DWORD
Result of the counted value in DWORD format
Prepared as interface to OS
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
Copyright Ó Siemens AG. All Rights Reserved. 8
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.
9 Copyright Ó Siemens AG. All Rights Reserved.
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
RTLS Input Signal BOOL 0 I
PV Input Signal STRUCT I
PV.Value Signal BOOL 0 I U +
PV.ST Signal Status BYTE 16#FF I U
REL_RT Release acquisition BOOL 1 I
COMMAND Command word WORD 16#00 I U +
Date/Time for RT reset from
RES_RTOS DWORD 16#00 IO U +
OS
RT_OS Run-time in hours REAL 0.0 IO +
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)
RT_OS_O Run-time in hours REAL 0.0 O
PV_Out Run-time in hours STRUCT O
PV_Out.Value Value REAL 0.0 O U +
PV_Out.ST Signal Status BYTE 16#80 O U +
RT_OS_H Hours of the runtime value DINT 0 O +
Minutes of the runtime
RT_OS_M DINT 0 O +
value (Rest)
Run-time in hours
RT_H_O REAL 0 O U
(refreshed every hour)
Run-time in hours
PV_OutH STRUCT O U
(refreshed every hour)
PV_OutH.Value Value REAL 0.0 O U +
PV_OutH.ST Signal Status BYTE 16#80 O U +
Run-time in seconds
RT_MIS_O DWORD 16#00 O U
32 Bit DWORD
Copyright Ó Siemens AG. All Rights Reserved. 10
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)
11 Copyright Ó Siemens AG. All Rights Reserved.
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
PV#Value Signal BOOL Binary variable
COMMAND Command word WORD Unsigned 16-bit value
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)
PV_Out#Value Value REAL 32-bit floating-point number IEEE 754
PV_Out#ST Signal Status BYTE Unsigned 8-bit value
RT_OS_H Hours of the runtime value DINT Signed 32-bit value
Minutes of the runtime value
RT_OS_M DINT Signed 32-bit value
(Rest)
PV_OutH#Value Value REAL 32-bit floating-point number IEEE 754
PV_OutH#ST Signal Status BYTE Unsigned 8-bit value
Copyright Ó Siemens AG. All Rights Reserved. 12
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:
OS- Msg Fault
Parameter Function Designation German Designation English
Addr. Class Class
COMMAND Kommandowort Commandword
COM_B20 0
COM_B21 1
COM_B22 R_RTOS 2 Zähler löschen Reset Runtime for OS Op. Inp.
COM_B23 3
COM_B24 4
COM_B25 5
COM_B26 6
COM_B27 7
COM_B10 8
COM_B11 9
COM_B12 10
COM_B13 11
COM_B14 12
COM_B15 13
COM_B16 14
COM_B17 15
13 Copyright Ó Siemens AG. All Rights Reserved.
N:\00_Cemat_Entwicklung\V8\V8200\30_Doku\Doku_Englisch\Reference\Objekte\000_Normal\C_RUNNT_009.doc