MACHINE_TENDING_FOCAS_PMC
PMC (Programmable Machine Control) header + payload for FOCAS operations. The header specifies target address/type/range; the payload holds typed data buffers.
BYTE# |
Field Name |
Data Type |
Value |
Remarks |
|---|---|---|---|---|
0 |
|
|
0 on success; negative/positive for errors |
|
2 |
|
|
Active FOCAS session handle |
|
4 |
|
|
PMC data type selector (vendor-defined) |
|
6 |
|
|
e.g. “G”, “D” |
PMC address type as a one-letter string, for example “G” or “D”. |
8 |
|
|
Start address number (word/bit base) |
|
10 |
|
|
Number of PMC items to read/write |
|
12 |
|
|
0-7 |
Bit offset for bit-level access |
13 |
|
Typed PMC payload buffers |
Size note: The total size is platform-dependent (sizeof(long)).
Defined in: DRFS.h
typedef struct _MACHINE_TENDING_FOCAS_PMC // PMC Information Header
{
short _ErrorCode;
unsigned short _hHandle;
short _iDataType;
char _szAddressType[2]; // e.g., "G", "D"
unsigned short _iStartAddressNum;
unsigned short _iCount; // Read & Write data count
unsigned char _iBitOffset;
MACHINE_TENDING_FOCAS_PMC_DATA _tData; // typed buffers
} MACHINE_TENDING_FOCAS_PMC, *LPMACHINE_TENDING_FOCAS_PMC;