Appendix b – Rockwell Automation 1785-Vx0B, D17856.5.9 PLC-5 VME VMEbus Programmable Controllers User Manual User Manual

Page 224

Advertising
background image

Sample API Modules

Appendix B

B-66

UBYTE reserved5:2;
UBYTE forcesSFC2Enabled:1;
#define kPLC540V_SFC2_FORCES_DISABLED 0x0
#define kPLC540V_SFC2_FORCES_ENABLED 0x1

UBYTE memoryProtected; /* Byte 17, Memory Protected; If this

is zero, then it is not protected.

*/
#define kPLC540V_MEMORY_NOT_PROTECTED 0x0

UBYTE ramInvalid; /* Byte 18, Bad RAM; If this is zero
then RAM is valid.
*/
#define kPLC540V_RAM_IS_VALID 0x0

UBYTE debugMode; /* Byte 19, Debug Mode; If this is

zero, then debug mode if off.

*/
#define kPLC540V_DEBUG_MODE_OFF 0x0

UWORD holdPointFile; /* Byte 20, Hold Point File; This
will contain the hold point file
if debug mode is on (non-zero).
*/

UWORD holdPointElement; /* Byte 22, Hold Point Element; This
will contain the hold point
element if debug mode is on (non-zero).
*/

UWORD editTimeStampSec; /* Byte 24, Edit Time Stamp Second */

UWORD editTimeStampMin; /* Byte 26, Edit Time Stamp Minute */

UWORD editTimeStampHour; /* Byte 28, Edit Time Stamp Hour */

UWORD editTimeStampDay; /* Byte 30, Edit Time Stamp Day */

UWORD editTimeStampMonth; /* Byte 32, Edit Time Stamp Month */

UWORD editTimeStampYear; /* Byte 34, Edit Time Stamp Year */

UBYTE portNumber; /* Byte 36, Port number that this
command was received on.
*/
} PLC540V_PCCC_IHAS_STATUS_TYPE;

/* The PCCC Identify Host and Status reply packet structure. */
typedef struct
{
UBYTE lnhHi;
UBYTE lnhLo;
UBYTE reserved[4];
UBYTE cmd;
UBYTE sts;
UWORD tns;
PLC540V_PCCC_IHAS_STATUS_TYPE plcStatus;
} PLC540V_PCCC_IHAS_RPY_TYPE;
#define kPLC540V_PCCC_IHAS_RPY_SIZE (sizeof(PLC540V_PCCC_IHAS_RPY_TYPE))
#pragma pack()

Advertising