Have any of you managed to connect Opta to the cloud and set up shared variables? Would anyone be able to break down step by step how this should be done or add an example? I have a ready made Ladder program in the PLC IDE, but unfortunately I am not able to connect this to the cloud.
I got it working yesterday, followed the process here: https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-cloud-support/ but before that I ran the QSPIFormat example in the Arduino IDE.
I found it very finiky to get working but once it worked it worked well. I would copy the project they supply in the documentation and try that.
I am running into another wifi related bug. I have the opta connected to a wifi hotspot on my phone, when I turn the hotspot off the opta will reboot. This seems really stupid to me, if I was in the middle of some code running on the PLC side it will stop if I am disconnected from the internet? Does anyone know a fix for this?
Also running into the issue where the PLC power cycles repeatedly when Wifi connection is lost. This is unacceptable behavior for an industrial controller.
I plan on connecting the Opta to Ignition(Inductive Automation) via Modbus or OPC-UA for a dedicated offline HMI/SCADA. For the PLC to abandon its task when it loses connection with the cloud/HMI is ridiculous.
For anyone else getting into this,
https://docs.arduino.cc/tutorials/opta/memory-partitioning/
This link will show how to upgrade the wifi FW and properly partition data
https://docs.arduino.cc/software/plc-ide/tutorials/plc-ide-cloud-support/
This link shows how to setup the PLC IDE to get the Opta Online
@gordonhka I'm trying to follow the two link you posted one for the partition and the other one for the connection to the cloud.
The Partition one I done it with no issues, however for the second link PLC IDE & Arduino cloud I have two issues.
1.- First question is: In the Arduino sketch section. The final one they show with all configurations and PLC IN and OUT variables. Is this Sketch supposed to be pasted inside the PLC IDE under the Sketch zone? or
In my Arduino cloud account under the Things --> Sketch?
2.- If I put it inside the PLC IDE (Sketch) after compiling it through a compilation error referencing to:
C:\Users\cares\AppData\Local\T\A\internal\ArduinoIoTCloud_1.15.1_8364bde677250e67\ArduinoIoTCloud\src/ArduinoIoTCloudTCP.h:27:10: fatal error: ArduinoMqttClient.h: No such file or directory
I copied the exact same code from the example and included the libraries but still gives me that error.
Did you guys have the same issue?
@gordonhka Did you resolve this i would also like to know how to get the cloud generated sketch on to the plc if i copy it i run in to errors