User guide
3.2 Configuration and User Files for the Application
The example application software consists following software modules. The default directory is \Application
Module Content Description
usriod_main_rt.c
Application main
program for RT
Startup of PNIO-stack, main loop with functions initiated by keyboard.
usriod_main_irt_c2.c
Application main
program for IRT
Class 2
Startup of PNIO-stack, main loop with functions initiated by keyboard.
usriod_main_dba.c
Application main
program for DBA
Startup of PNIO-stack, main loop with functions initiated by keyboard.
usriod_cfg.h
Select one of the
Application
programs
With a define one of the example applications (RT, IRT Class2, DBA
Interface) can be selected.
usriod_diag.c
Application
program for
diagnostics
Example for handling standard channel diagnostics including
diagnostic alarms.
usriod_diag.h
Header file Header file for usrilod_diag.c containing data structure definitions
(among other things) for the standard channel diagnostics.
usriod_im_func.c
I&M functions Example for handling I&M functions. IM0 is implemented; IM1 to IM3
have only a framework that can be programmed by the user, if
necessary.
usriod_im_func.h
I&M functions Header file for useriod_im_func.c
usriod_utils.c
Utilities Utility for system load measuring (for debugging)
usriod_utils.h
Header file Headerfile for usriod_utils.c
iodapi_event.c
Signalling of
events to the
application
Contain functions who are called by the PNIO-stack if events are
occured, such as establishment or disconnection of connections,
alarm receipt, etc., thereby informing the application.
The user must implement these functions according to his
requirements.
iodapi_event.h Header file Headerfile for iodapi_event.c, may be adapted unchanged.
iodapi_log.c
Logging of debug
and error
messages
Central reporting of errors and notes to the application, logging for
debugging purposes or initiation of error handling routines. The
functions are called by the stack and must be implemented by the
user according to his requirements. Empty functions can also be
implemented.
Iodapi_rema.c
Remanent data Hand over remanent Data (PDEV records) from the PNIO stack to the
application and store them in a non volatile memory.
Table 4: Files of the example application
Copyright © Siemens AG 2008. All rights reserved. 30 DK_ERTEC200_PNIO_Description
Technical data subject to change Version 3.0.0