Hello Guest it is April 19, 2024, 11:27:36 PM

Author Topic: Remote USB display with Modbus  (Read 22883 times)

0 Members and 1 Guest are viewing this topic.

Re: Remote USB display with Modbus
« Reply #20 on: June 15, 2011, 06:29:48 PM »
That worked it said Hello on the LCD!!!!

Fred
OK if you can write to it with Hyperterm them all we should have to do is find out the Comport settings that HT used.

Then try setting up the MCAH port the same.   Then we can start with something simple like

SendSerial "Hello" and see what happens.

(;-) TP
OK if you can write to it with Hyperterm them all we should have to do is find out the Comport settings that HT used.

Then try setting up the MCAH port the same.   Then we can start with something simple like

SendSerial "Hello" and see what happens.

(;-) TP
"Gravity, its not just a good idea its the law"

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Remote USB display with Modbus
« Reply #21 on: June 15, 2011, 07:24:56 PM »
OK see I told ya just ONE small itsiy tiny step away. Now we need to figure out the matrix

Try sendserial "abcdefghijklmnop"      that would be 16 charectors or 1 full line.

(;-)TP
Re: Remote USB display with Modbus
« Reply #22 on: June 15, 2011, 07:44:53 PM »
OK, that worked as well but I found out it only worked when I run the VB script manually in the editor. If I save it as macropump.m1s and start Mach it does not show up. Ans yes I do have run macro pump checked in Comfig. Is there something in ports and pins that I missed?

Fred




OK see I told ya just ONE small itsiy tiny step away. Now we need to figure out the matrix

Try sendserial "abcdefghijklmnop"      that would be 16 charectors or 1 full line.

(;-)TP
"Gravity, its not just a good idea its the law"

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Remote USB display with Modbus
« Reply #23 on: June 15, 2011, 08:12:01 PM »
HUM, no if it runs in vb script it should run as a macropump. The macropump is just a vb script ran 10 times per second all the time.

OK try this  sendserial" ?x0,?y1" & "hello"                it should put hello on the second line down from the top

(;-) TP
Re: Remote USB display with Modbus
« Reply #24 on: June 15, 2011, 10:05:13 PM »
It worked manually OK it put it second line down one space over from the left.

Fred


HUM, no if it runs in vb script it should run as a macropump. The macropump is just a vb script ran 10 times per second all the time.

OK try this  sendserial" ?x0,?y1" & "hello"                it should put hello on the second line down from the top

(;-) TP
"Gravity, its not just a good idea its the law"

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Remote USB display with Modbus
« Reply #25 on: June 15, 2011, 10:58:36 PM »
OK one last thing for today,  

Sendserial " abcdefghijklmnopqrstuvwxyz"  Lets see if it will line wrap.  IF it does OK then send the original SCript that had the single string to it from the editor. If that works let me know.

(;-) TP
« Last Edit: June 15, 2011, 11:00:40 PM by BR549 »
Re: Remote USB display with Modbus
« Reply #26 on: June 16, 2011, 10:41:45 AM »
OK one last thing for today, 

Sendserial " abcdefghijklmnopqrstuvwxyz"  Lets see if it will line wrap.  IF it does OK then send the original SCript that had the single string to it from the editor. If that works let me know.

(;-) TP

Sorry I did not get this untill this morning, when I get home tonight I will try it. Also is this the other one you wanted me to try?

XV = "X: " & Format (Getdro(0) , "+000.0000;-000.0000") & "    "
YV = "Y: " & Format (Getdro(1) , "+000.0000;-000.0000") & "    "
ZV = "Z: " & Format (Getdro(2) , "+000.0000;-000.0000") & "    "
AV = "A: " & Format (Getdro(3) , "+000.0000;-000.0000") & "    "
MS = "?Y0,?X0"
SendSerial "" &MS &XV &YV &ZV &AV

"Gravity, its not just a good idea its the law"

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Remote USB display with Modbus
« Reply #27 on: June 16, 2011, 02:06:35 PM »
HIYA FRED,   YEP that is the one BUT less make a slight mod and send this. I removed the comma between the ?x and ?y

XV = "X: " & Format (Getdro(0) , "+000.0000;-000.0000") & "    "
YV = "Y: " & Format (Getdro(1) , "+000.0000;-000.0000") & "    "
ZV = "Z: " & Format (Getdro(2) , "+000.0000;-000.0000") & "    "
AV = "A: " & Format (Getdro(3) , "+000.0000;-000.0000") & "    "
MS = "?Y0?X0"
SendSerial "" &MS &XV &YV &ZV &AV
Re: Remote USB display with Modbus
« Reply #28 on: June 16, 2011, 07:16:39 PM »
OK, we do have line wrap. I tried the scrip and it is close here is what we have now.
"Gravity, its not just a good idea its the law"
Re: Remote USB display with Modbus
« Reply #29 on: June 16, 2011, 08:47:59 PM »
I also figured out why the macro was not running, it was in the wrong folder. It now runs when I start Mach but everything scrolls across the LCD?
"Gravity, its not just a good idea its the law"