- 论坛徽章:
- 0
|
Here is the elemenet type list:
typedef enum _ELEMENT_TYPE {
AllElements,
ChangerTransport,
ChangerSlot,
ChangerIEPort,
ChangerDrive,
ChangerDoor,
ChangerKeypad
} ELEMENT_TYPE, *PELEMENT_TYPE;
How to set the element type up to the tape library setup.
For example, transport(robot) address is 0, 1, 2. You can pick up any one from 0 to 2.
CHANGER_MOVE_MEDIUM ch_mm;
ch_mm.Transport.ElementAddress = 0;
ch_mm.Transport.ElementType = ChangerTransport;
The storage slot addresses are in the range of 1024h -- 3000h.
The Import/export slot addresses are from 301h -- 316h.
You want to move the cartridge from 301h to 1024h
ch_mm.Source.ElementAddress = 0x301;
ch_mm.Source.ElementType = ChangerIEPort;
ch_mm.Destination.ElementAddress = 0x1024;
ch_mm.Destination.ElementType = ChangerSlot;
So, your programer must have the library inventory data first so that you can determine the address is belonged to what element type. |
|