ADICON Support Forum Applied Digital, Inc.
Page 1 of 2 12>
Topic Options
#20101 - 07/15/08 03:48 PM Bobcat RS232 Data Value
nicechap Offline
newbie


Registered: 04/07/08
Posts: 6
I'm reading post #19730, but the only value I'm getting returned from the Bobcat is 65535, even when I send messages from it (which is working). It also doesn't change with any ASCII I transmit to it either. I have tried this with two separate Bobcats, each version 8 with V3.18.

Any ideas what I may be doing wrong? Looking at wrong?

Top
#20102 - 07/15/08 06:00 PM Re: Bobcat RS232 Data Value [Re: nicechap]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Did you set your termination character correctly? Don't forget that it has to be an exact (and case sensitive) match of both the ASCII string and the termination character. If you set the termination character to ^010 (linefeed) and are looking for string "ABC"; and you actually send "ABC^013^010" (carriage return and linefeed) then it won't work.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#20103 - 07/15/08 06:45 PM Re: Bobcat RS232 Data Value [Re: Guy Lavoie]
nicechap Offline
newbie


Registered: 04/07/08
Posts: 6
The termination character is set to 13, which is the default. Using your example I'm sending "ABC^013". What I find interesting is that even if I use CPUXA to transmit ASCII messages from the Bobcat, I see the correct message come out, but I never see its data value change from 65535 on the Controller Access screen. I also have the following:

IF Module #3 -BOBCAT-A is > -100
THEN Load Data to: Variable #3

Variable #3 is always 65535, even when I send a message. Since the Bobcat value never becomes anything else, I can't use the change to drive anything. It seems like the value should be changing to the message # I send, right?

Top
#20104 - 07/15/08 09:38 PM Re: Bobcat RS232 Data Value [Re: nicechap]
nicechap Offline
newbie


Registered: 04/07/08
Posts: 6
One thing I've noticed now is that the value changes to 65534 when I transmit to the Bobcat. That tells me it's receiving what I send, however, doesn't find it. I'm not sure why since I've cut and pasted the exact ASCII from the ASCII Messages page.

But why don't I see the value change when I have the Bobcat send a message using CPUXA?

Top
#20105 - 07/16/08 05:15 AM Re: Bobcat RS232 Data Value [Re: nicechap]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Monitoring the bobcat's value on the controller access screen might not give you chance to see the value for evey program pass, since C-Max samples the values periodically. Try changing you test program to something like this (assuming that the string you want to match is in location #1):


IF Module #3 -BOBCAT-A becomes = 1
THEN Variable #3 + 1


This incement variable #3 by 1 if the bobcat returns a value of 1, even for a very short time.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#20107 - 07/16/08 07:56 AM Re: Bobcat RS232 Data Value [Re: Guy Lavoie]
nicechap Offline
newbie


Registered: 04/07/08
Posts: 6
It never increments that way. I can do:

IF Module #3 -BOBCAT-A becomes < 65000
THEN Variable #3 + 1

and I can see it increment. But if I set it to become any specific number I don't get a change.

Top
#20109 - 07/16/08 08:20 AM Re: Bobcat RS232 Data Value [Re: nicechap]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Ok, then try capturing it too and tell me what it is (what veriable #4 gets set to):

IF Module #3 -BOBCAT-A becomes < 65000
THEN Load Data to Variable #4
THEN Variable #3 + 1
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#20110 - 07/16/08 08:33 AM Re: Bobcat RS232 Data Value [Re: Guy Lavoie]
nicechap Offline
newbie


Registered: 04/07/08
Posts: 6
Variable #4 never changes, but variable #3 increments.

#4 is always zero.

I also have:

IF Module #3 -BOBCAT-A becomes = 0
THEN Variable #5 + 1

and Variable #5 never increments either.

Top
#21753 - 04/07/10 03:46 AM Re: Bobcat RS232 Data Value [Re: nicechap]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
where I can read about receiving data throuth rs232 bobcat? Bobcat's pdf tells nothing about it.
Top
#21754 - 04/07/10 06:43 AM Re: Bobcat RS232 Data Value [Re: oonkel]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
and some troubles. I have v5 ascii rs232 bobcats, I can't send value in messages.
code is
[img] http://www.ydom.ru/t/asc00.jpg[/img]

I got only text, no values.

Top
#21755 - 04/07/10 06:44 AM Re: Bobcat RS232 Data Value [Re: oonkel]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
code once more

Top
#21756 - 04/07/10 06:58 AM Re: Bobcat RS232 Data Value [Re: oonkel]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
v8.31/59 application v3.08
Top
#21761 - 04/07/10 06:27 PM Re: Bobcat RS232 Data Value [Re: oonkel]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
What version are your bobcats? They need to be version 6 to be able to include embedded (formatted) variables, and be version 8 to be able to receive and match ascii data.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#21762 - 04/07/10 08:33 PM Re: Bobcat RS232 Data Value [Re: Guy Lavoie]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
I have v5 ascii rs232 bobcats
Top
#21763 - 04/07/10 08:35 PM Re: Bobcat RS232 Data Value [Re: oonkel]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
is the v. 5 the only reason?
Top
#21764 - 04/08/10 05:18 AM Re: Bobcat RS232 Data Value [Re: oonkel]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
Yes, a version 5 will not be able to put out a formatted variable or receive and match incoming ASCII data.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#21765 - 04/08/10 08:01 AM Re: Bobcat RS232 Data Value [Re: Guy Lavoie]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
I found v.7 485Bobcat, it works.
Can I apgrade v.5 to v.7?

Top
#21766 - 04/08/10 08:30 AM Re: Bobcat RS232 Data Value [Re: oonkel]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
No, unfortunately that cannot be done.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#21767 - 04/08/10 08:48 PM Re: Bobcat RS232 Data Value [Re: Guy Lavoie]
oonkel Offline
junior


Registered: 10/13/09
Posts: 32
Is it a hardware or firmware problem?
Top
#21768 - 04/09/10 10:26 AM Re: Bobcat RS232 Data Value [Re: oonkel]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6406
Loc: Montreal, QC, Canada
It's not a "problem" as such, but the new features had simply not yet been added to the firmware in the earlier bobcat version.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
Page 1 of 2 12>


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
2 registered (ken-h, John Vomastic) and 23 anonymous users online.
Recent Posts
SECU16IR Output Connecting To A Xantech Connecting Block
by Guy Lavoie
Today at 06:14 AM
SECU16IR Output Connecting To A Xantech Connecting Block
by Jean-Marie
Yesterday at 08:34 AM
how to post an icon
by manu
02/03/12 03:40 AM
Command Pair
by kuro
02/01/12 12:49 AM
Does anyone have a copy of the latest TSE?
by sevenzenith1
01/30/12 05:17 AM
Shout Box

Newest Members
seeooo13, feshh, manu, chuck214, Funkhauser
2747 Registered Users
Forum Stats
2747 Members
19 Forums
3837 Topics
22722 Posts

Max Online: 67 @ 08/16/11 03:08 PM
February
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29