
- •Documentation for oeMs: CoDeSys sp rte
- •Document Version 2.2
- •1Overview
- •1.1What does "real time extension" mean?
- •1.2The System in Detail
- •2Operation via the Service Icon
- •2.1The System Menu
- •2.1.1Diagnostic
- •2.1.2Startup
- •2.1.3Config
- •2.1.4Access
- •2.1.5Io Drivers
- •3The 3s Standard io Drivers
- •3.1Io driver rtiOdrvHilscherDpm
- •3.1.1The SysLibDpV1.Lib
- •3.2Io driver rtiOdrvFc310x.Sys
- •3.2.1The library SysLibFcdpv1.Sys
- •3.2.2The library fc_SlaveHandling.Lib
- •3.3Io driver rtiOdrvDamp
- •3.4Io driver rtiOdrvApplicom
- •3.6Io Drivers rtiOdrvSja and rtiOwdmPcan
- •3.7Io Drivers rtiOdrvAutomata and rtiOwdmAutomata
- •3.8Io drivers rtiOdrvHms and rtiOwdmHms
- •3.9Io driver rtiOdrvApic
- •3.10Io Driver rtiOwdmCanAutomata
- •3.11Io Driver rtiOwdmSofting
- •4Communication
- •4.1Shared Memory Driver
- •4.2 Tcp/ip Level2 Route Driver
- •5System Diagnosis
- •5.1Bus diagnosis of the io drivers
- •6The Task Configuration together with CoDeSys v2.3
- •6.1Systemereignisse können mit Funktionsaufrufen dem iec-Programm zur Verfügung gestellt werGeneral
- •6.2Task specific watchdog
- •6.3Microseconds as time base
- •6.4Freewheeling task
- •6.5System events
- •6.6DllCall.Lib together with SysLibSystemCall.Lib
- •6.7SysLibCallback.Lib
- •6.8SysLibCom.Lib
- •6.9SysLibFile.Lib
- •6.10SysLibPorts
- •6.11SysLibTime
- •6.12SysLibSockets
- •6.13SysLibShm.Lib
- •6.14SysLibPciCards.Lib
- •7Behaviour in case of runtimeerrors
- •8Appendix
- •8.1The Registry Entries used by the Runtime System
3The 3s Standard io Drivers
Regard: As soon as during setup the PC has been identified as a non-AT-compatible one, but the hardware working according to the UP-MPS specification, the RTIOdrvAPIC driver will be installed automatically. You neither can configure this driver nor you may remove it.
3.1Io driver rtiOdrvHilscherDpm
The IO driver RTIOdrvHilscherDPM uses the values found in the registry entry (HKEY_LOCAL_MACHINE\System\CurentControlSet\Services\RTIOdrvHilscherDPM\Params) Device 0 to 4, to find its cards resp. to tell which cards it has found.
Valid entries are:
|
Possible values |
Comment |
Device0..4\Type (String) |
8K_DPM or 2K_DPM |
The Hilscher-CIF/COM cards are available with 2K(1k IO data) and 8K(7k IO data). |
Device0..4\Address (DWORD) |
32-bit-value |
The physical bus address of the card. |
CreateComTask |
0 or 1, default: 1 |
If this value is available and =1, then a communication task will be created, which will constantly check the Hilscher cards for any communication messages. If the value =0 or does not exist then this task will not be created. |
Device0..4\DoNotConfigure |
0 or 1 |
If this value is 1, then the Hilscher card will be ignored by CoDeSys in the PLC configuration |
Detected |
String „Not found” or “Card found: <Information on the card> |
This entry is used to show which cards have been detected by the driver. |
in Params: AutoDetection |
0 or 1 |
This entry can be used to activate (1) or deactivate (0) the automatic search for Hilscher cards. If a card is not searched automatically, it has to be entered manually by Address/Type. |
In Params: UseInterrupt |
Bitwise |
Bit 0 = 1: The driver uses interrupts for PCI-Pbmastercards. Bit 1 = 1: The driver will use the 2. interrupt channel of the PCI controller. This is only necessary for special hardware implementations. Bit 2 = 1: The driver will use negative interrupt polarity when initializing the PCI-controller. This is only necessary for special hardware implementations. |
In Params: WaitFlags |
Bit coded (exclusive, set only one of the bits!) |
Bit0: With this flag the driver is configured to wait before updating the IO data until the last PB-cycle is finished. Bit1: With this flag the driver is configured to skip the update for this cycle, if the last PB-cycle is not finished. |
If you are using PC bus versions and manual configuration (AutoDetection = 0), consider that the address of the card can change as soon as new PCI devices get added.
The Hilscher card driver works with all Hilscher cards, even with such which cannot be configured in CoDeSys. Nevertheless the process data transmission mode "user controlled, buffered" can be used in the Hilscher configurator (e.g. Interbus). By doing so data inconsistencies within a task can be avoided.
The RTIOdrvHilscherDPM usually searches for its cards independently, except there is an entry "AutoDetection“=0 in (HKEY_LOCAL_MACHINE\System\CurentControlSet\Services\RTIOdrvHilscherDPM\, which will prevent the automatic detection of cards.
The automatic detection mechanism will enter the found cards in each "Device“ key in HKEY_LOCAL_MACHINE\System\CurentControlSet\Services\RTIOdrvHilscherDPM\Params.
The access on the process image of the card will be done cycle-(task)synchronously, if in the SyCon the „user controlled, buffered“ access has been set. The driver will do a handshake with all Hilscher cards via the PdCom-Flag.
When using Profibus- or CANopen cards the PLC configurator of CoDeSys can be used. There any desired IO addresses can be assigned on the channel level. From the assignment in the PLC configuration the system will know, which card has to be addressed.
When using Hilscher cards, the message box interface can directly be accessed via the library Hilscher.lib (See for details in the documentation delivered by Hilscher with the cards). In extension to that for CANopen cards of Hilscher the Hilscher_SDOtransfer.lib can be used to build up a SDO communication with CAN nodes. Both libraries are part of the setup.
Together with the latest version of the driver, the HilscherPBInfo.lib can be used, if interrupts are enabled. The actual PB-scantime can be determined.