plc_module.proto 330 B

12345678910111213141516171819202122
  1. syntax = "proto2";
  2. package plc_module;
  3. message plc_connection_params{
  4. required string ip=1;
  5. required int32 port=2;
  6. required int32 slave_id=3;
  7. }
  8. enum PLC_STATUS
  9. {
  10. ePLCConnected=0;
  11. ePLCDisconnected=1;
  12. ePLCRefused=2;
  13. ePLCUnknown=3;
  14. }
  15. message Plc_msg
  16. {
  17. optional PLC_STATUS status=1;
  18. repeated int32 plc_values=2;
  19. }