1 / 6

Lab #4 Device & Record Support

Lab #4 Device & Record Support. Acromag AVME9440-I-L. Digital I/O board 16 binary output channels with LED indicators 16 binary input channels with LED indicators Interrupt support on input channels 0-7 Look through the board User’s Manual

arowland
Download Presentation

Lab #4 Device & Record Support

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab #4Device & Record Support

  2. Acromag AVME9440-I-L • Digital I/O board • 16 binary output channels with LED indicators • 16 binary input channels with LED indicators • Interrupt support on input channels 0-7 • Look through the board User’s Manual • Understand the facilities it provides and how to use them • Set jumpers for • Base Address • Address Modifier • Interrupt Level (later exercises only)

  3. Binary output • Create device support for the Binary Output record • Copy ~studnt0/ioc/example/exampleApp/src/devBoTemplate.c to a new file in your working area • Implement the necessary routines and compile this • Check the Record Reference Manual for interface requirements • Make device addresses configurable at run-time • How can you check whether an Acromag board is at that address? • Create a suitable device entry in a new .dbd file • Build the application’s global .dbd file • Create a database with record instances using your support • Add suitable entries to the IOC startup script • Boot and test it!

  4. Multi-bit binary output • Create support for the Multi-Bit Binary Output record • How does the interface for this differ from the bo record? • Check the mbbo entry in the Record Reference Manual • Copy the devMbboTemplate.c file, or use your bo support • Can you implement mbboDirect support too?

  5. Binary input • Create support for the Binary Input record • The file devBiTemplate.c is available for copying • NB: Only one group can test this at once • Add I/O Interrupt capability • A change of state of the input signal causes the record to be processed when SCAN=“I/O Intr” • Several records may address the same input channel • Make interrupt vectors configurable at run-time • Create support for the Multi-Bit Binary Input record • The file devMbbiTemplate.c is available for copying • How do you handle interrupts for both bi and mbbi records together?

  6. Record support • Create a new record type • Copy the existing xxxRecord.c and xxxRecord.dbd files • Edit the .dbd file and change the field definitions • Change the source code to implement the new functionality • Create soft-record device support for the new record type • Copy the existing devXxxSoft.c file

More Related