You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 line
828 B

  1. #ifndef PLSR_MODBUS_DATA_H
  2. #define PLSR_MODBUS_DATA_H
  3. #include "plsr_job.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. /* Build a PLSR data source backed by the shared PLC data store. D/HD/FD and
  8. * X/M/HM are separate logical spaces; standard Modbus holding registers expose
  9. * D and standard Modbus coils expose M. */
  10. void PlsrModbusDataSourceInit(PLSR_DATA_SOURCE *source);
  11. /* XDM-60T4-E physical input producer. The input image is sampled before the
  12. * Modbus/PLSR control polls, so FC02 and motion protection consume the same
  13. * debounced board state. */
  14. PLSR_RESULT PlsrModbusInputInit(void);
  15. void PlsrModbusInputPoll(void);
  16. uint32_t PlsrModbusInputGetRawMask(void);
  17. uint32_t PlsrModbusInputGetLogicalMask(void);
  18. uint32_t PlsrModbusInputGetMappedMask(void);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif /* PLSR_MODBUS_DATA_H */