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

 Réponse acceptée

Dan Mckenna
Dan Mckenna le 28 Juin 2022

0 votes

Solved!
I connected via Modbus and now have my data

Plus de réponses (0)

Catégories

En savoir plus sur Simulink PLC Coder dans Centre d'aide et File Exchange

Produits

Version

R2022a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by