Modbus with Propeller
babinda01
Posts: 54
Hi·,
I have a little project on the go which requires a prop chip to talk to a PLC and a PC via·modbus.· I was wondering if anyone has·written any modbus objects for the Prop.
Regards
Andrew
I have a little project on the go which requires a prop chip to talk to a PLC and a PC via·modbus.· I was wondering if anyone has·written any modbus objects for the Prop.
Regards
Andrew
Comments
Are you wanting to do ASCII / RTU (I'm assuming you're using serial)
You should be able to just use a basic serial module (which there are plenty of) to talk with, whipping something up in SPIN shouldn't be a huge deal.
And are you wanting it in slave or master mode?
By only implementing enough for 4xxxx registers, the driver becomes really short and easy.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
And CDC Type 1 RTU protocol is worse than DH.
Unpleasant memories.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com - a new blog about microcontrollers
Yes I know the word MODBUS is as close to a swear word as you can get, but unfortunatly this is what the PC & PLC side of the unit needs to communicate back and forwards, so the poor old Prop chip needs to be able to do the same.
The PLC (ladder logic programming) side of things is no worries for me to do, I have done it many a time.· The PC software is written by another person and so cannot be changed by me.
Asterick, Yes I will be using the serial port and I am wanting the Prop chip to be used as slave mode.
Regards
Andrew
Well it's good to know other people are in the PLC world. I just wish symax wasn't all but dead. As far as protocols go, it's so much more elegant than the other stuff I've been forced to work with.