Rockwell Automation 1747-PCIS API Software - Open Controller User Manual
Page 160

Publication 1747-UM002A-US-P - June 2000
C-12 Header File
/* ***** 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 */
/* ***** Switch Position ***** */
/* These values are returned by the OC_GetSwitchPosition() function. */
/* */
#define SWITCH_TOP 0xFF /* Switch is in the Top position */
#define SWITCH_MIDDLE 0x00 /* Switch is in the Middle position */
#define SWITCH_BOTTOM 0x01 /* Switch is in the Bottom position */
/* ***** Jumper State ***** */
/* These values are returned by the OC_GetUserJumperState() function. */
/* */