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

Page 223

Advertising
background image

Sample API Modules

Appendix B

B-65

UBYTE expansionType; /* Byte 3, Processor Expansion Type */
#define kPLC540V_PROCESSOR 0x37

ULONG memorySize; /* Byte 4, Processor Memory Size(WRDS)*/

UBYTE revision:5; /* Byte 8, Processor Revision & Series*/
#define kPLC540V_REVISION_A 0x0
#define kPLC540V_REVISION_B 0x1

UBYTE series:3;
#define kPLC540V_SERIES_A 0x0
#define kPLC540V_SERIES_B 0x1

UBYTE stationNumber:6; /* Byte 9, Processor station number */
UBYTE reserved1:2;

UBYTE adapterAddress; /* Byte 10, Processor Adapter Address */
#define kPLC540V_IS_SCANNER 0xFD

UBYTE doubleDensity:1; /* Byte 11, I/O & Comm Params */
#define kPLC540V_DOUBLE_DENSITY 0x0
#define kPLC540V_NOT_DOUBLE_DENSITY 0x1

UBYTE adapterMode:1;
#define kPLC540V_NOT_ADAPTER_MODE 0x0
#define kPLC540V_ADAPTER_MODE 0x1

UBYTE moduleGroupForTopHalf:1;
#define kPLC540V_MODULE_GRP_NOT_TOP 0x0
#define kPLC540V_MODULE_GRP_TOP 0x1

UBYTE reserved2:2;
UBYTE adapterIsHalfRack:1;
#define kPLC540V_ADAPTER_NOT_HALF_RACK 0x0
#define kPLC540V_ADAPTER_IS_HALF_RACK 0x1

UBYTE pclAt115KBaud:1;
#define kPLC540V_PCL_NOT_115K 0x0
#define kPLC540V_PCL_IS_115K 0x1

UBYTE reserved3:1;

UWORD dataTableFileCount; /* Byte 12, Data Table File Count; This
value is the highest assigned file
number plus one.
*/
UWORD programFileCount; /* Byte 14, Program File Count; This
value is the highest assigned file
number plus one.
*/

UBYTE forcingActive:1; /* Byte 16, Forcing Status */
#define kPLC540V_FORCING_NOT_ACTIVE 0x0
#define kPLC540V_FORCING_IS_ACTIVE 0x1

UBYTE reserved4:3;
UBYTE forcesPresent:1;
#define kPLC540V_FORCES_NOT_PRESENT 0x0
#define kPLC540V_FORCES_ARE_PRESENT 0x1

Advertising