
- •Overview
- •What does "real time extension" mean?
- •The System in Detail
- •Operation via the Service Icon
- •The System Menu
- •Diagnostic
- •Startup
- •Config
- •Access
- •IO Drivers
- •License ...
- •The 3S Standard IO Drivers
- •IO driver RTIOdrvHilscherDPM
- •The SysLibDpV1.lib
- •IO driver RTIOdrvFC310x.sys
- •The library SysLibFCDPV1.sys
- •The library FC_SlaveHandling.lib
- •The FC310x card in slave mode
- •IO driver RTIOdrvCP5613.sys
- •IO driver RTIOdrvDAMP
- •IO driver RTIOdrvApplicom
- •IO driver RTIOdrvIBS (IBS = Interbus, ibpcimpm.sys)
- •IO Drivers RTIOdrvSJA and RTIOwdmPCAN
- •IO Drivers RTIOdrvAutomata and RTIOwdmAutomata
- •IO drivers RTIOdrvHMS and RTIOwdmHMS
- •IO driver RTIOdrvAPIC
- •IO Driver RTIOwdmCANAutomata
- •IO Driver RTIOwdmSofting
- •Communication
- •Shared Memory Driver
- •TCP/IP Level2 Route Driver
- •System Diagnosis
- •Bus diagnosis of the IO drivers
- •The Task Configuration together with CoDeSys V2.3
- •General
- •Task specific watchdog
- •Microseconds as time base
- •Freewheeling task
- •System events
- •System libraries
- •DllCall.lib together with SysLibSystemCall.lib
- •SysLibCallback.lib
- •SysLibCom.lib
- •SysLibFile.lib
- •SysLibPorts
- •SysLibTime
- •SysLibSockets
- •SysLibShm.lib
- •SysLibPciCards.lib
- •Behaviour in case of runtimeerrors
- •APPENDIX
- •The Registry Entries used by the Runtime System

Documentation for OEMs:
CoDeSys SP RTE
Realtime Runtime System for Windows NT/2000/XP
Document Version 2.2
tech_doc_e.doc / V1.1
3S - Smart Software Solutions GmbH |
Page 1 of 35 |
CoDeSys SP RTE_E.doc |
|

tech_doc_e.doc / V1.1
Realtime Runtime System for Windows NT/2000/XP
CONTENT |
|
|
||
1. |
OVERVIEW |
4 |
||
|
1.1 |
What does "real time extension" mean? |
4 |
|
|
1.2 |
The System in Detail |
5 |
|
2 OPERATION VIA THE SERVICE ICON |
6 |
|||
|
2.1 |
The System Menu |
7 |
|
|
2.1.1 |
Diagnostic |
7 |
|
|
2.1.2 |
Startup |
9 |
|
|
2.1.3 |
Config |
10 |
|
|
2.1.4 |
Ext. Config |
11 |
|
|
2.1.5 |
Access |
12 |
|
|
2.1.6 |
IO Drivers |
13 |
|
|
2.2 |
License ... |
14 |
|
3 THE 3S STANDARD IO DRIVERS |
15 |
|||
|
3.1 |
IO driver RTIOdrvHilscherDPM |
15 |
|
|
3.1.1 |
The SysLibDpV1.lib |
16 |
|
|
3.2 |
IO driver RTIOdrvFC310x.sys |
17 |
|
|
3.2.1 |
The library SysLibFCDPV1.sys |
17 |
|
|
3.2.2 |
The library FC_SlaveHandling.lib |
18 |
|
|
3.2.3 The FC310x card in slave mode |
18 |
||
|
3.3 |
IO driver RTIOdrvCP5613.sys |
19 |
|
|
3.4 |
IO driver RTIOdrvDAMP |
19 |
|
|
3.5 |
IO driver RTIOdrvApplicom |
20 |
|
|
3.6 |
IO driver RTIOdrvIBS (IBS = Interbus, ibpcimpm.sys) |
20 |
|
|
3.7 |
IO Drivers RTIOdrvSJA and RTIOwdmPCAN |
20 |
|
|
3.8 |
IO Drivers RTIOdrvAutomata and RTIOwdmAutomata |
20 |
|
|
3.9 |
IO drivers RTIOdrvHMS and RTIOwdmHMS |
21 |
|
|
3.10 |
IO driver RTIOdrvAPIC |
21 |
|
|
3.11 |
IO Driver RTIOwdmCANAutomata |
22 |
|
|
3.12 |
IO Driver RTIOwdmSofting |
22 |
|
4 |
COMMUNICATION |
23 |
||
|
4.1 |
Shared Memory Driver |
23 |
|
|
4.2 |
TCP/IP Level2 Route Driver |
23 |
|
5 |
SYSTEM DIAGNOSIS |
24 |
||
|
5.1 |
Bus diagnosis of the IO drivers |
24 |
|
6 THE TASK CONFIGURATION TOGETHER WITH CODESYS V2.3 |
26 |
3S - Smart Software Solutions GmbH |
Page 2 of 35 |
CoDeSys SP RTE_E.doc |
|

Realtime Runtime System for Windows NT/2000/XP
|
6.1 |
General |
26 |
|
6.2 |
Task specific watchdog |
26 |
|
6.3 |
Microseconds as time base |
26 |
|
6.4 |
Freewheeling task |
26 |
|
6.5 |
System events |
27 |
7 |
SYSTEM LIBRARIES |
28 |
|
|
7.1 |
DllCall.lib together with SysLibSystemCall.lib |
28 |
|
7.2 |
SysLibCallback.lib |
28 |
|
7.3 |
SysLibCom.lib |
28 |
|
7.4 |
SysLibFile.lib |
29 |
|
7.5 |
SysLibPorts |
29 |
|
7.6 |
SysLibTime |
29 |
|
7.7 |
SysLibSockets |
30 |
|
7.8 |
SysLibShm.lib |
30 |
|
7.9 |
SysLibPciCards.lib |
30 |
8 BEHAVIOUR IN CASE OF RUNTIMEERRORS |
31 |
||
9 |
APPENDIX |
32 |
|
|
9.1 |
The Registry Entries used by the Runtime System |
32 |
CHANGE HISTORY |
35 |
tech_doc_e.doc / V1.1
3S - Smart Software Solutions GmbH |
Page 3 of 35 |
CoDeSys SP RTE_E.doc |
|

Realtime Runtime System for Windows NT/2000/XP
1. Overview
In this document it is assumed that the reader is familiar with the fundamental behaviour and functions of a CoDeSys runtime system. Therefore this brief manual only deals with the specific features of the runtime system for a real time extension of Windows NT.
The real time system is started by executing the command ‘Start CoDeSys SP Windows NT for Realtime’ in the CoDeSys menu in the Windows Start menu. When started the following service icon appears in the Windows task bar:
1.1What does "real time extension" mean?
A real time system is characterized by predictable (deterministic) time behaviour. If for example a real time system is given the task of executing specific routines (through configuration) within a predetermined time pattern this will happen within predetermined temporal ranges of tolerance. If this is not the case it is regarded as a failure of the whole system.
If this is applied to a controller such as CoDeSys this means that a task is called within predetermined (known) ranges of tolerance.
Figures drawn from past experience have shown that these ranges are not adhered to by Windows NT, which means that NT is not a genuine realtime operating system.
Yet the hardware in a PC is made in such a way that it is possible to create a reliable task scheduling by means of software.
The real time extension of Windows NT is an NT driver which installs an Interrupt-Service-Routine which is called-up cyclically by the timertick of the PC’s hardware.
This routine now takes over the job of calling-up defined tasks from CoDeSys and/or of authorizing the continued or renewed execution of the operating system.
tech_doc_e.doc / V1.1
3S - Smart Software Solutions GmbH |
Page 4 of 35 |
CoDeSys SP RTE_E.doc |
|

Realtime Runtime System for Windows NT/2000/XP
1.2The System in Detail
CoDeSys
Gateway |
RTService |
|
|
gateway driver |
|
(shared memory driver) |
applications |
|
|
|
kernel driver |
shared memory communikation + device IO control
NT kernel
HAL
CPU |
IO driver
3S-RTE |
function calls |
|
kernel driver |
||
|
The kernel of the realtime extension (short RTE) consists of two parts: A system service, called RTService.exe and a kernelmode-driver (3SRTE.sys). In standard version the PC’s timertick is used to generate 2 hardware interrupts per millisecond, and so call the scheduler of the RTE. The scheduler uses every second tick to call his own tasks and the others to return to the interrupted OS. So all PLC-tasks are interrupted once per millisecond by a time slice of OS-execution. The percentage of time for PLC-tasks is configurable (see chapter 6).
The mentioned IO-drivers are added to a list and have to offer a special interface which is defined by the IO-DriverToolkit.
The whole system does not change the operating system’s kernel at runtime or installation.
tech_doc_e.doc / V1.1
3S - Smart Software Solutions GmbH |
Page 5 of 35 |
CoDeSys SP RTE_E.doc |
|