Hello,
I'm trying to communicate a CR800 with a screen HMI5070, but
I have not been established, communication must be modbus,
The program I use is:
preservevariables
Public PTempC, PTempF, Batt_Volts
Public Modbus(3)
Public modbdig(3) As Boolean
Public Result
'Define Data Tables
DataTable (ModTest,1,-1)
DataInterval (0,1,Min,10)
Minimum (1,Batt_Volts,FP2,0,False)
Sample (1,PTempC,FP2)
Sample (1,PTempF,FP2)
EndTable
'Main Program Array that holds
BeginProg
ModBusSlave (ComRS232,-19200,1,Modbus(),modbdig())
Scan (10,Sec,0,0)
PanelTemp (PTempC,_60Hz)
PTempF = PTempC * 1.8 + 32
Battery (Batt_Volts)
Modbus(1) = Batt_Volts
Modbus(2) = PTempC
Modbus(3) = PTempF
'ModBusMaster (Result,ComRS232,-9600,1,5,Modbus(),1,3,3,10)
CallTable ModTest
NextScan
EndProg
I would like to know how I can do the consultation via hyperterminal to view the data via modbus
someone will have a modbus communications example, some information or communication via Modbus datalogger
Thanks
1. Please tell us what you are attempting to do, display data on the screen?
2. Please provide a link to the manual for the HMI5070.
3. Suggest you download and perhaps even purchase ModScan32 if you want to do ModBus testing.
http://www.win-tech.com/html/modscan32.htm
Hello IslandMan
1.- I want to show on screen ModBus values (Batt_Volts, PTempC and PTempF)
2.- http://www.maplesystems.com/cgi-bin/download/manuals4.asp
HMI5000 Series Programming Manual
3.- I use ModBusPoll Software to test modbus comunication
I do some tests with the following program:
'Program for CR1000 Series Datalogger
'Declare Public Variables
PreserveVariables
Public Modbus(4)As Float
Alias Modbus(1)=Termocople
Alias Modbus(2)=TemperaturaC
Alias Modbus(3)=TemperaturaF
Alias Modbus(4)=Voltaje
'Public modbdig(4) As Boolean
Public Result As Boolean
'Define Data Tables
DataTable (ModTest,1,-1)
DataInterval (0,1,Min,10)
Minimum (1,Voltaje,FP2,0,False)
Sample (1,TemperaturaC,FP2)
Sample (1,TemperaturaF,FP2)
Sample (1,Termocople,FP2)
EndTable
'Main Program Array that holds
BeginProg
'ModBusMaster (Result,ComRS232,-9600,00001,5,Modbus(),1,3,2,10)
Scan (10,Sec,0,0)
PanelTemp (TemperaturaC,_60Hz)
TemperaturaF = TemperaturaC * 1.8 + 32
Battery (Voltaje)
TCDiff(Termocople,1,mV2_5C,1,TypeT,TemperaturaC,True,0,_60Hz,1,0)
'ModBusMaster (Result,ComRS232,-9600,1,5,Modbus(),1,3,3,10)
ModBusSlave (Com1,9600,1,Modbus(),Result,0)
CallTable ModTest
NextScan
EndProg
When testing the software ModBusPoll the datalogger does not respond, always sends the message The response is Not Received Within The Expected time. Any idea why I can not see my data?
Thanks!!
* Last updated by: MiguelR on 12/8/2010 @ 10:36 AM *
Miguel,
I do not wish to join Maple Systems in order to get the manual and then get thousands of emails for the rest of my life :-).
My information is here if you want to try to email it.
http://www.campbellsci.com/adamsenvsys
I'm assuming you can program the Display with a ModBus poll to get the data from the datalogger.
Try this program:
'Program for CR1000 Series Datalogger
'Declare Public Variables
Public Modbus(4)As Float
Public TemperaturaC
Public TemperaturaF
Public Voltaje
Public Termocople
'Define Data Tables
DataTable (ModTest,1,-1)
DataInterval (0,1,Min,10)
Minimum (1,Voltaje,FP2,0,False)
Sample (1,TemperaturaC,FP2)
Sample (1,TemperaturaF,FP2)
Sample (1,Termocople,FP2)
EndTable
'Main Program
BeginProg
Scan (10,Sec,0,0)
PanelTemp (TemperaturaC,_60Hz)
TemperaturaF = TemperaturaC * 1.8 + 32
Battery (Voltaje)
TCDiff(Termocople,1,mV2_5C,1,TypeT,TemperaturaC,True,0,_60Hz,1,0)
Modbus(1) = TemperaturaC
Modbus(2) = TemperaturaF
Modbus(3) = Voltaje
Modbus(4) = Termocople
ModBusSlave (Com1,9600,1,Modbus(),0,0)
CallTable ModTest
NextScan
EndProg
Be sure you have the wiring correct to use Controls ports 1 & 2 on the dataloggger for the connection to the ModScan. Be sure the Modscan is set up to 9600 Baud and you have the correct comport setting on your PC.