├── .gitattributes ├── my files ├── 139036.jpg ├── Chinese_HAT.jpg └── Pico_PLC_Pinout_2023.png ├── .gitignore ├── Firmware.ino.1.08.zip ├── LICENSE └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /my files/139036.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suratin27/Pico-PLC-FX1N/HEAD/my files/139036.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | my files/Pico.png 3 | my files/Pico-PLC-Pinout.png 4 | my files/PLC_Layout.pptx 5 | -------------------------------------------------------------------------------- /Firmware.ino.1.08.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suratin27/Pico-PLC-FX1N/HEAD/Firmware.ino.1.08.zip -------------------------------------------------------------------------------- /my files/Chinese_HAT.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suratin27/Pico-PLC-FX1N/HEAD/my files/Chinese_HAT.jpg -------------------------------------------------------------------------------- /my files/Pico_PLC_Pinout_2023.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suratin27/Pico-PLC-FX1N/HEAD/my files/Pico_PLC_Pinout_2023.png -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Forkee 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Pico-PLC-FX1N 2 | Raspberry pi Pico PLC Firmware 3 | Technical specifictions 4 | 5 | 0.Firmware revision log 6 | - V1.08 7 | - Raw ADC0 ,ADC1 added to D1010 ,D1011 8 | - V1.07 9 | - MUL bug fixed 10 | - V1.06 11 | - Timer bug fixed - 2nd 12 | - V1.05 13 | - Timer bug fixed 14 | - V1.04 15 | - Modbus IO supported 16 | - Y0 - Y6 (Active HIGH) 17 | - V1.02 18 | - X8,X9 Read status bug fixed 19 | - Modbus RTU Slave supported 20 | - Modbus RTU Master supported 21 | 22 | 1.Hardware 23 | - Raspberry pi Pico 24 | 25 | 2.PLC Function compatibility 26 | - PLC Model : FX1N/FX1NC 27 | - Input 10 Input 28 | - Output 7 Output (Active High) 29 | - Ladder step : 2000 steps 30 | - Retentive memory : No 31 | - RS485 modbus : Yes 32 | - RS485 function 33 | - Modbus master 34 | - Modbus slave 35 | - Analog input 2 Input 36 | 37 | 3.How to install firmware (ขั้นตอนการติดตั้ง FX1N Firmware) 38 | - กดปุ่ม boot บนบอร์ด Raspberry pi pico ค้างไว้พร้อมกับเสียบบอร์ด Raspberry pi pico เข้ากับ usb port ของคอมพิวเตอร์ 39 | - จากนั้นบอร์ดจะเข้าสู่ โหมด Flash drive 40 | - จากนั้น copy ไฟล์ Firmware.ino.uf2 ไปวางไว้ใน drive นั้น 41 | - จากนั้น Raspberry pi pico จะ reboot 1 ครั้ง 42 | - จากนั้น Raspberry pi pico ของจะกลายเป็น FX1N ที่พร้อมสำหรับเชื่อมต่อกับ GXWork2 ได้ทันที 43 | 44 | 3.1 ADC0 = D1000 Analog input ช่องที่ 0 ให้อ่านค่าที่ address D1000 45 | 3.2 ADC1 = D1001 Analog input ช่องที่ 1 ให้อ่านค่าที่ address D1001 46 | 47 | *** ขอให้ทุกท่าน สนุกสนานกับการใช้งานครับ *** 48 | 49 | 4.PLC Pinput 50 | ![Pico_PLC_Pinout_2023](https://github.com/suratin27/Pico-PLC-FX1N/blob/main/my%20files/Pico_PLC_Pinout_2023.png) 51 | 52 | 5.บอร์ดแนะนำ 1 - Cytron Maker PI PICO 53 | ![Cytron_maker](https://github.com/suratin27/Pico-PLC-FX1N/blob/main/my%20files/139036.jpg) 54 | 55 | 6.บอร์ดแนะนำ 2 - Chinese HAT 56 | ![Chinese-HAT](https://github.com/suratin27/Pico-PLC-FX1N/blob/f9ee5f900fe66b66cfc3b8f3a552068f2e1f9e2e/my%20files/Chinese_HAT.jpg) 57 | 58 | 7.If you want to use Pico PLC as Arduino library you can use my Arduino library name is "picoPLC".You can search "picoPLC" in Arduino library manager 59 | 60 | --------------------------------------------------------------------------------