Hi all,
I need to use Factory I/O WebAPI in my cybersecurity project, as I would like to automate it by not touching the Factory I/O GUI (if it is possible).
Basically, I have tried and the api only allows me to write values for coils, but I cannot write values for inputs.
i.e.
REQUEST
curl -X PUT -d ‘[{“name”: “Start Button 0”, “value”: true}]’ -H “Content-Type: application/json; charset=utf-8” http://127.0.0.1:7410/api/tag/values/by-name
RESPONSE
[{“name”: “Start Button 0”, “code”: 406, “error”: “You are not allowed to set the value of an input tag.”}]
REQUEST
curl -X PUT -d ‘[{“name”: “Start Button 0 (Light)”, “value”: 1}]’ -H “Content-Type: application/json; charset=utf-8” http://127.0.0.1:7410/api/tag/values/by-name
I’m not at pc and don’t remember the answer, but I’m sure the start button light comes on without error.
I think it may be a communication problem between webapi and openplc, but I am not sure and I am looking for someone who has encountered the same problem or something similar.