Hi community,
I bought a FX3U Clone at Amazon.
Label: Seeku WS-3U -14MRT
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.
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