mbs.h 496 B

12345678910111213141516171819202122
  1. #ifndef MBS_H
  2. #define MBS_H
  3. #include "plt.h"
  4. #define REG_HOLDING_START 0x0000
  5. #define REG_HOLDING_NREGS 0xFFFF
  6. #define REG_INPUT_START 0x0000
  7. #define REG_INPUT_NREGS 0xFFFF
  8. #define COIL_START 0x0000
  9. #define COIL_NCOILS 0xFFFF
  10. #define DISC_START 0x0000
  11. #define DISC_NINPUT 0xFFFF
  12. extern USHORT usHoldingRegisters[REG_HOLDING_NREGS];
  13. extern USHORT usInputRegisters[REG_INPUT_NREGS];
  14. extern UCHAR ucCoils[COIL_NCOILS];
  15. extern UCHAR ucDiscIn[DISC_NINPUT];
  16. int mbs_start_MDL();
  17. #endif /* MBS_H */