Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Delphi and rs485 interface advice needed

Status
Not open for further replies.

walt

Member level 1
Joined
Jul 17, 2002
Messages
38
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
191
delphi rs485

Tried to make PC to MCS51 interface using TComPort 2.6 Delphi component.
I'm not experienced in Delphi, but everything is working!!!!
Need advice from rs485 and Delphi experts how to implement 9 bit networking. I made it in such way:
1)set parity Mark
2)open port
3)send device number
4)close port
5)set parity Space
6)open port
7)send/receive data
8)back to 1
Is it possible to eliminate 4, 6 ?
 

Eskimo

Member level 1
Joined
Apr 9, 2002
Messages
34
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
183
rs485 delphi

Maybe Modbus ASCII (or RTU) is better choice ?
 

Mr_Programmer

Full Member level 3
Joined
Feb 21, 2002
Messages
153
Helped
9
Reputation
18
Reaction score
5
Trophy points
1,298
Activity points
1,424
delphi + rs-485

walt:
Why do you set parity by hand? I havn't programmed RS485 via Delphi yet, but a lot of RS232. Selecet the proper parity mode in TComPort component.

Regards .. :wink:
 

walt

Member level 1
Joined
Jul 17, 2002
Messages
38
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
191
rs485 + delphi

I'd like to learn how to change parity in my Delphi application using TComPort component, because at first I must select certain device with Parity Bit =1, then I communicate with this device (parity=0).
I managed to do this only when closing Com port and then opening - it takes a lot of time.
May be there is more simple and more professional solution?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top