03-30-2006 08:14 AM - edited 03-30-2006 08:14 AM
Message Edited by Magnus Svensson on 03-30-2006 08:15 AM
Message Edited by Magnus Svensson on 03-30-2006 08:15 AM
03-30-2006 05:16 PM
03-31-2006 12:50 AM
Yes. When I read the attributes I'm using the Function Code 4, Read Input Registers. But since I want to read the data at my analog input channel I am using Function Code 1, Read Coils.
Best Regards
Magnus Svensson
03-31-2006 01:44 AM
Magnus,
Actually, you should be using Fn Code 4, Read Input Registers, for your Analog Inputs as well. Because these are numeric values.
Coils are discrete (boolean) values, which you would use with Digital modules.
Regards,
-Khalid
03-31-2006 02:35 AM
Ahh...Now It works
Thanks Khalid for your help. Since I'm new to modbus I assumed that coils meant Analog Input but apperatly I was wrong.
Do you know where I can found what the different fuctions stand for?
Best Regards
Magnus Svensson
03-31-2006 09:06 AM
Magnus,
No problem... "Coils" is an old terminology; usually implying closing/opening of solenoid coils.
Here's the Modbus standard -- a good overview:
http://modbus.org/docs/Modbus_Application_Protocol_V1_1a.pdf
The website www.modbus.org has other stuff as well.
Regards,
-Khalid