senrust / pymcprotocol

MC Protocol(MELSEC Communication Protocol) implementation by Python
MIT License
80 stars 22 forks source link

Understanding of pymcprotocol #2

Closed mes20a42 closed 3 years ago

mes20a42 commented 3 years ago

Hi there, thanks for your effort in making this package. I would like to understand the following questions 1) Is it possible to read and write data via ethernet module of the PLC ? 2) Can I control the reading occurrence as from what I understood it seems like the function (batchread) is continuously reading from the PLC

Thanks in advance Eason

senrust commented 3 years ago

Thank you for using pymcprotocol.

  1. Yes. You should use setaccessopt method. You can change protocol header. https://pymcprotocol.netlify.app/_modules/pymcprotocol/type3e.html#Type3E.setaccessopt Please change protocol header for your network structure.

  2. No. pymcprotocol does not support monitering condition.

Best Regards, Yohei Osawa

mes20a42 commented 3 years ago

Thank you for using pymcprotocol.

  1. Yes. You should use setaccessopt method. You can change protocol header. https://pymcprotocol.netlify.app/_modules/pymcprotocol/type3e.html#Type3E.setaccessopt Please change protocol header for your network structure.
  2. No. pymcprotocol does not support monitering condition.

Best Regards, Yohei Osawa

Hi Yohei Osawa-san,

I understand. Thanks for getting back to me

すぐる

senrust commented 3 years ago

I'm going to add monitering condition in next major update. Thank you for your suggestion!