suratin27 / Pico-PLC-FX1N

Raspberry pi Pico PLC Firmware
MIT License
21 stars 4 forks source link

FX Protocol #1

Open pdeheij opened 1 year ago

pdeheij commented 1 year ago

Hello is FX protocol provided on the serial port ?

suratin27 commented 1 year ago

Yes ,It is.

gvastianos commented 3 months ago

@suratin27 congratulations for your work!!! I have been doing tests trying to make the fx1n pico plc to communicate via the embedded usb serial port with the pc. My goal was not to program or monitor in realtime the PLC ... my goal was to make plc send and receive custom bytes via the usb serial port based on ladder programming. I know that i can use modbus to communite between plc and hmi,pc or i/o extenders but i want to implement serial communication between fx1n pico plc and pc based on the custom protocol options as it is described in the Mitsubisi manuals (by using the RS command, D8120 registers etc). I used the following manuals http://www.inverter-plc.com/plc/FX_PLC/The%20FX-232ADP%20RS-232%20adapter%20module%20for%20FX%20PLCs.pdf and http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d69901/jy992d69901e.pdf and i wasnt able to make any communication at all. It seems like you have not implement the "FX COMMUNICATION (RS-232C, RS-485, RS-422)" and the USB serial connection is used only for programming and live monitoring of plc. For example I tried to run the example in page 9-16 of "jy992d69901e.pdf" and is not working. Can you please answer me if you have implement the "FX communication" as it is described by Mitsubishi or should I use the usb port for programming and monitoring???? thanks