karadevnet
hi to all, i have a many boards with raspberry pico and LAN PICO - EVB wiznet w5100s and want to try using a open plc editor for my tasks. i make a simple program for ST language wich is ok compiling, but after select correct serial port and speed compiled file not uploaded. open window fro uploading on pico is open and that is all. also a miniature log window show message for INVALID PORT. but com port is not invalid because in arduino ide on the same port compiled file for other standart example is uploaded fine.

i make some jpg files to show what is going on here with open plc ide. i hope so that all will be fine 🙂 soon. think is some little bug in uploaded window form after compiling.

also i want to ask why in hardware specs is show that software support only some of gpio pins of pico and can you extend this, because pico board have many of gpio pins to use???

and i have a pcb projects with EVB wiznet w5100s PICO LAN rj45 but how cab here in open plc can use this communication ???

also how can use a spi interface, serial rs-232 interfaces and other build in pico hardware blocks ?

for now is most important to fix file uploading. next for nex time 🙂 best regards to all 🙂


no_upload1.jpg


viber_image_2023-02-28_14-17-22-634.jpg
Reply 0 0
Rob65
The OpenPLC editor uses the Arduino environment to compile and upload code to the Pico so you need to first flash the Arduino bootloader to the Pico.
To do this, you need to press the bootsel button and then plug in the Pico. Now you get a new drive called RPI-RP2 and then press upload in the OpenPLC editor.
Next time, the Arduino uploader will do this automatically so you only have to do this the first time you upload a program.
SPI, Serial and other hardware blocks in the Pico are - as far as I know - not supported.
 
Regarding the support for the GPIO pins, the Pico board (from the Raspberry Pi foundation) has 26 GPIO pins. The current OpenPLC implementation has 8 digital inputs, 8 digital outputs, 2 analog out and 3 analog in and that sums up to 21 pins. I'd call this more than "some of GPIO pins".
The other pins are reserved for Serial, SPI and one wire although I am not sure this has already been implemented.
Reply 1 0
davidv1325.
Rob65 wrote:
The OpenPLC editor uses the Arduino environment to compile and upload code to the Pico so you need to first flash the Arduino bootloader to the Pico.
To do this, you need to press the bootsel button and then plug in the Pico. Now you get a new drive called RPI-RP2 and then press upload in the OpenPLC editor.
Next time, the Arduino uploader will do this automatically so you only have to do this the first time you upload a program.
SPI, Serial and other hardware blocks in the Pico are - as far as I know - not supported.
 
Regarding the support for the GPIO pins, the Pico board (from the Raspberry Pi foundation) has 26 GPIO pins. The current OpenPLC implementation has 8 digital inputs, 8 digital outputs, 2 analog out and 3 analog in and that sums up to 21 pins. I'd call this more than "some of GPIO pins".
The other pins are reserved for Serial, SPI and one wire although I am not sure this has already been implemented.
Hello, thank you very much, your information was very helpful.
Reply 0 0
Reply