Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

PakBus Communication CR800


SSoares Mar 22, 2011 01:46 PM

I wanted to make a data transmission between two datalogger connected together, someone could help me do this?


Dana Mar 22, 2011 03:19 PM

It depends upon what you want to do, but take a look at the GetDataRecord, SendGetVariables, and the SendVariables instructions in the CRBasic help file. There are example programs for each of these instructions as well.

Dana W.


SSoares Mar 23, 2011 03:53 PM

I have two dataloggers, which I want to connect through port RS232 or CS I/O, in order to successfully send a datatable periodically from one to another.
I tried using the function SendData () and SendVariable(), but could not get the data sent in another datalogger.
How can I access the data sent by other datalloger? and can I handle these data?In the case of the function SendVariable() the variable or array sent automatically appears on another datalogger?

I did the following tests like in the example of CRBasic help:

If IfTime (0,1,Min) Then

SendData (ComRS232,50,50,Table)

EndIf

and

If Flag(1) Then

SendVariables (RXResponse,ComRS232,0,50,0,0,"Public","Temp",Batt_Volt,1)

EndIf


Thanks for help


Dana Mar 23, 2011 06:45 PM

What Result code do you get with SendVariables?

Dana W.


Dana Mar 23, 2011 07:00 PM

One note about SendData -- if you are using SendData in one datalogger, the other datalogger must be using AcceptDataRecords. There are several caveats explained in the help.

As with GetDataRecord, the AcceptDataRecords CRBasic help has example programs for the sending and receiving dataloggers.

Dana


SSoares Mar 24, 2011 10:01 PM

I used SendData and AcceptDataRecords in the receiver and Works.
I only had one problem, when instead of using the RS232 port used the CS I/O, I could not get anything.

I also used the function getVariable and again I could only communicate through the RS232 port. What could be the problem when I use the other port?
I did the following and I use the same cable that I use to connect the RS232 ports:

GetVariables(RXResponse,ComME,0,60,0000,0,"Public","Batt_Volt",CR1Data,1)


Thanks,
Sérgio

Log in or register to post/reply in the forum.