12345678910111213141516171819202122 |
- #ifndef MBS_H
- #define MBS_H
- #include "plt.h"
- #define REG_HOLDING_START 0x0000
- #define REG_HOLDING_NREGS 0xFFFF
- #define REG_INPUT_START 0x0000
- #define REG_INPUT_NREGS 0xFFFF
- #define COIL_START 0x0000
- #define COIL_NCOILS 0xFFFF
- #define DISC_START 0x0000
- #define DISC_NINPUT 0xFFFF
- extern USHORT usHoldingRegisters[REG_HOLDING_NREGS];
- extern USHORT usInputRegisters[REG_INPUT_NREGS];
- extern UCHAR ucCoils[COIL_NCOILS];
- extern UCHAR ucDiscIn[DISC_NINPUT];
- int mbs_start_MDL();
- #endif /* MBS_H */
|