TCP connection to Eaton E4 PLC

I am using a Easy e4 PLC on a small project and trying to use matlab to monitor an analog signal on channel1 (AI(1))
If I am in a web browser I can type in; xxx.xxx.xxx.xxx/api/get/data? elm=AI(1)
where xxx.xxx.xxx.xxx is the ip address
and I get a return like {"OPERANDS":{"AISINGLE":[{ "INDEX":1,"V":813}]}}
I have tried using Matlab read, write, and line read and write but no luck
Does anyone know how I might code this?
Thank you
Dan

 Accepted Answer

Dan Mckenna
Dan Mckenna on 28 Jun 2022
Solved!
I connected via Modbus and now have my data

More Answers (0)

Categories

Find more on Simulink PLC Coder in Help Center and File Exchange

Products

Release

R2022a

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!