Rockwell-automation 1747-PCIS API Software - Open Controller Manual de usuario Pagina 151

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 174
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 150
Publication 1747-UM002A-US-P - June 2000
Header File C-3
#define SCAN_PERIODIC 1 /* Select periodic mode - next scan occurs every time*250us */
/* ***** Scan Mode ***** */
/* These values are passed to the OC_SetScanMode() function. */
/* */
#define SCAN_IDLE 0 /* Select Idle mode (not scanning I/O) */
#define SCAN_RUN 1 /* Select Scan mode (scanning I/O) */
/* ***** IO Idle State ***** */
/* These values are passed to the OC_SetIOIdleState() function. */
/* */
#define IDLESTATE_RESET 0 /* I/O bus is reset in Idle mode */
#define IDLESTATE_HOLD 1 /* I/O is held in last state in Idle mode */
/* ***** PollScanner Message ID’s ***** */
/* These values are passed to the OC_PollScanner() function (message filter), and */
/* are returned in the MsgID member of the MSGBUF structure. */
/* */
#define OCMSG_NONE 0 /* No messages are available (msg ID) */
#define OCMSG_ANY 0 /* Poll for any message (filter) */
#define OCMSG_IOINT 1 /* I/O Module Interrupt */
#define OCMSG_DIINT 2 /* Discrete Input Interrupt */
#define OCMSG_EOS 3 /* End of Scan notification */
#define OCMSG_EOS_DMDIN 4 /* End of Scan notification from demand input */
#define OCMSG_EOS_DMDOUT 5 /* End of Scan notification from demand output */
/* ***** Scanner Force Settings ***** */
/* These values are passed to the OC_EnableForces() function. */
/* */
#define FORCE_ENABLE 0 /* Enable forces */
#define FORCE_DISABLE 1 /* Disable forces */
#define FORCE_CLEAR 2 /* Clear all forces */
/* ***** Module Force Settings ***** */
/* These values are passed to the OC_SetForces() function. */
/* */
#define FORCE_INPUTS 0 /* Select input forces */
#define FORCE_OUTPUTS 1 /* Select output forces */
/* ***** Slot Settings ***** */
/* These values are passed to the OC_EnableSlot() function. */
/* */
#define SLOT_ENABLE 0 /* Enable module */
#define SLOT_DISABLE 1 /* Disable module */
/* ***** LED States ***** */
/* These values are passed to the OC_SetUserLEDState() function, and are */
/* returned by the OC_GetUserLEDState() function. */
/* */
#define LED_OFF 0 /* LED is off */
#define LED_RED_SOLID 1 /* LED is Red (continuous) */
#define LED_GREEN_SOLID 2 /* LED is Green (continuous) */
#define LED_RED_FLASH 3 /* LED is flashing Red (1 & 2 only) */
#define LED_GREEN_FLASH 4 /* LED is flashing Green (1 & 2 only) */
/* ***** Battery Status ***** */
/* These values are returned by the OC_GetBatteryStatus() function. */
/* */
#define BATTERY_LOW 0 /* Battery voltage is low */
#define BATTERY_GOOD 1 /* Battery is OK */
Vista de pagina 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 173 174

Comentarios a estos manuales

Sin comentarios