Download presentation
Presentation is loading. Please wait.
1
EPICS APPLICATION DEVELOPMENT
EPICS Seminar Presented by SHIFU XU ,IHEP 20 August 2002
2
Outline PCI & ISA device driver on Linux Platform
Remote device driver via Ethernet VME I/O device driver on vxWorks Application to develop
3
PCI & ISA device driver OS:Linux Redhat 7.1
EPICS base release:3.14 alpha02/01 ISA board:PC6310 A/D,12bits,32 channels PCI board:PCI8020 12bits A/D,8 channels (bipolar) 8bits D/A, 2 channels 0~5v unipolar or -5v~+5v bipolar (AI) Conversion time < 10us
4
PCI device driver--hardware
5
PCI device driver--test
6
Ethernet-based Device driver
Asynchronous Device driver IOC 3.13 OPI MEDM vxworks5.31, tornado1.01 compiler:ccppc gmake
7
Ethernet-based Device driver
8
Ethernet-based Device driver
9
VME I/O device driver Sun solaris 2.8 + Torado 2.02 vxWorks 5.4
MVME2431 cpu board MVME512—004 I/O module 12bits D/A, 2 channels 16bits A/D, 16 channels (bipolar input)
10
VME I/O device driver
11
VME I/O device driver
12
VME I/O device driver
13
Files involved devM512.c, drvM512.c mydbExample1.db, mydbExample2.db
exampleApp.dbd st.cmd Makefile
14
exampleApp.dbd include "base.dbd"
device(ai,VME_IO,devAiM512,"MVME512board") device(ao,VME_IO,devAoM512,"MVME512board") driver(drvM512)
15
mydbExample1.db record(ao, "$(user):myaoExample") {
field(DTYP, "MVME512board") field(OUT, "#C0 field(SCAN, "Passive") field(LINR, "LINEAR") field(ESLO, " ") #20.0/0xFFF field(EGUF, "10.0") field(EGUL, "-10.0") field(OMSL, "closed_loop") field(DOL, "$(user):calcExample.VAL NPP NMS") field(HOPR, "10") field(LOPR, "-10") }
16
mydbExample1.db(cont.) record(ai, "$(user):myaiExample") {
field(DTYP, "MVME512board") field(INP, "#C0 field(SCAN,"Passive") field(LINR, "LINEAR") field(ESLO, " ") #20.0/0xFFFF field(EGUF, "10") field(EGUL, "-10") field(HOPR, "10") field(LOPR, "-10") }
17
st.cmd cd "/export/home/xusf/epicsapp/512/bin/ppc604" ld < iocCore
ld < seq ld < exampleLib cd "/export/home/xusf/epicsapp/512/iocBoot/iocm512" dbLoadDatabase("../../dbd/exampleApp.dbd") dbLoadRecords("../../db/mydbExample1.db","user=xusf") dbLoadRecords("../../db/mydbExample2.db","user=xusf") drvM512Verbose=(short)1 devM512Verbose=(short)1 iocInit
18
Our plan CAN bus device driver based on VME
Controlnet device driver based on VME or via ethernet
19
Thanks
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.