dieter.l
Hi community,
 
I bought a FX3U Clone at Amazon.
 
Label: Seeku WS-3U -14MRT
Manufacturer: www.winsunzk.cn
Type: WS314MR03300
 
After unlock flash following the procedure from openplc-uploader I was able to flash it with OpenPLC.
But I never got ModBus/RTU running and had trouble with the pin mapping using fx3u-14m / LE3U-14M entry for flashing.
 
CPU label was not readable as the labeling is erased via laser. - from the Pin numbers and tracing it is a STM32F103VET6 or a compatible type - not a VCT6 as in the fx3u-14m / LE3U-14M. Even the pin mapping did not fit.
 
20240708_204400888_iOS.jpg20240708_204429985_iOS.jpg
 
After a lot of experiments and writing a Arduino sketch for testing I found a solution.
I created a new hal and cpp based on the existing fx3u-14m.cpp and extend the hals.json.
 
With these files all inputs and outputs are working, even the run switch, run led and Modbus/RTU as slave.
 
hals.json entry:
 
"FX3U-14M / WS3U-14Mx": {
        "platform": "STMicroelectronics:stm32:GenF1:pnum=GENERIC_F103VETX,upload_method=serialMethod",
        "source": "fx3u-14-WS3U.cpp",
        "version": "2.8.0",
        "last_update": 0,
        "core": "STMicroelectronics:stm32",
        "default_din": "PB13, PB14, PB11, PB12, PE15, PB10, PE13, PE14",
        "default_ain": "PA1, PA3, PC4, PC5, PC0, PC1",
        "default_dout": "PC9, PC8, PA8, PA0, PB3, PD12",
        "default_aout": "PA4, PA5",
        "user_din": "PB13, PB14, PB11, PB12, PE15, PB10, PE13, PE14",
        "user_ain": "PA1, PA3, PC4, PC5, PC0, PC1",
        "user_dout": "PC9, PC8, PA8, PA0, PB3, PD12",
        "user_aout": "PA4, PA5"
    }
 
When I will find time, I will raise a pull request in git.
 
Greetings from Germany.
Dieter
 
 
Reply 2 0
thiagoralves
That’s great! Thank you for your contribution. The main problem with these clones is that different vendors have different IO mapping. 
Reply 0 0
dieter.l
Thank you for your great project.
The different pin mappings are always a big problem - and additionally they erase the labeling on the chips - thats not really helpful for tracing. But with time .... everything can solved 🙂
Reply 1 0
lucianod6
  1. Hi, I'd like to take this opportunity to ask a question: with the use of GX Works 2 many RAM memories (counters... timers... registers...) are persistent... does the same thing happen with OpenPLC? thanks bye
Reply 0 0
thiagoralves
OpenPLC does not support persistent storage on microcontrollers 
Reply 1 0
Reply