For my school project, I need to use an Arduino as a sensor host to communicate values to an industrial automat.
I need to send temperature, humidity and lux.
My program to collect data is already done, but I'm searching for a solution to send these values to the industrial automat.
My first idea was to pass by RS232 connector but how : ?
As I know, the DB9 connector act as a Parallel In/Out but the Arduino just get Serial In/Out transmetter pins.
And what is the kind of data to transmit ? Raw numbers ? Hexa numbers ? :
Sorry for my roughly english, I'm a French guy ^^
Thanks by advance for your help
Having had a quick look at @PowerBroker's link I don't think I can help without spending hours studying the document - which I am not prepared to do.
I suspect the decision about DF1 or ASCII is up to the user (i.e. you). I have no idea what DF1 is all about - is is a proprietary system? Which makes me suspect that the ASCII mode would be easier
If this is a school project I would expect your teacher to be the expert on this.
Robin2:
Having had a quick look at @PowerBroker's link I don't think I can help without spending hours studying the document - which I am not prepared to do.
I suspect the decision about DF1 or ASCII is up to the user (i.e. you). I have no idea what DF1 is all about - is is a proprietary system? Which makes me suspect that the ASCII mode would be easier
If this is a school project I would expect your teacher to be the expert on this.
Sorry I can't be more helpful.
...R
Thanks anyway for your help, now I know that I need to work on ASCII section.
And my teacher just discovered Arduino one month ago so he isn't so informed on this...
I'll check if I can create a library to communicate and I'll send there an answer if I found something...
DF1 is a communication developed and used by Allen-Bradley to communicate to and from A PLC. DF1 uses an RS-485 protocol to communicate, which required a special user interface in the programmer laptop. To use the DB9 connector the PLC must have that port enabled and setup for RS232 communication. This setup is inside the PLC processor and must be setup by the PLC programmer.