ZWorld Exp-A/D12 Manual de usuario Pagina 54

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 99
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 53
SE110054 s Software Reference
There are no software drivers unique to the SE1100 expansion boards.
Since the SE1100 is driven by the digital outputs of the host controller it is
connected to, the drivers associated with the host controllers digital
outputs will operate the relays on the SE1100.
The following sample program shows how to use the SE1100 with
Z-Worlds BL1700 controller.
17SE1100.C
/* REL0 to U2, 0
REL1 to U2, 1
REL2 to U2, 2
REL3 to U2, 3
RET1 to RET2 to DC to BL1700, DCIN
GND to U2, GND
*/
#use vdriver.lib
#use eziobl17.lib
main(){
unsigned long t;
VDInit(); // hits watchdog periodically
eioBrdInit(0); // initialize board
while(1){
t = MS_TIMER;
printf("on\n");
while((MS_TIMER – t) < 1000L){
outport(0x4100, 1);
outport(0x4100, 3);
outport(0x4100, 5);
outport(0x4100, 7);
}
t = MS_TIMER;
printf("off\n");
while((MS_TIMER – t) < 1000L){
outport(0x4100, 0);
outport(0x4100, 2);
outport(0x4100, 4);
outport(0x4100, 6);
}
}
}
Vista de pagina 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 98 99

Comentarios a estos manuales

Sin comentarios