Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 28, 2012, 08:56:41 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
LCD display
Pages:
1
Go Down
« previous
next »
Author
Topic: LCD display (Read 298 times)
0 Members and 2 Guests are viewing this topic.
cd_edwards
Active Member
Offline
Posts: 27
LCD display
«
on:
October 28, 2011, 08:09:26 AM »
I purchased a LCD Smartie recently which I hope to use for DRO display as well as other information. Here is the code I'm having trouble with
It seems that I need to send raw characters to the device in order to drive it. The example I found in one of the other boards here, does not work for me. The block that I've been working on is in the "If init-=0 .... endif" section.
I'm working from the driver software for the matrix DLL which works using LCD Smartie
procedure TLCD_MO.setPosition(x, y: Integer);
begin
writeDevice(Chr($0FE)+'G'+Chr(x)+Chr(y));
inherited;
end;
Chr(254) is 0xFE
cnt=getVar(1000)
init=getVar(1001)
If init=0 Then
SendSerial _
Chr(254)"G"Chr(0)Chr(0)" X:" & _
Chr(254)"G"Chr(0)Chr(1)" Y:" & _
Chr(254)"G"Chr(0)Chr(2)" Z:" & _
Chr(254)"G"Chr(0)Chr(3)" A:" & _
setVar(1001, init+1)
setVar(1000, 0)
end if
if cnt=10 then
setVar(1000, 0)
SendSerial _
"¦30" & Format (Getdro(0) , "+000.0000;-000.0000") & _
"¦31" & Format (Getdro(1) , "+000.0000;-000.0000") & _
"¦32" & Format (Getdro(2) , "+000.0000;-000.0000") & _
"¦33" & Format (Getdro(3) , "+000.0000;-000.0000")
else
setVar(1000, cnt+1)
End If
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: LCD display
«
Reply #1 on:
October 28, 2011, 09:53:30 AM »
IS this device serial,modbus,usb,
IS Mach running the LPT SS or some other motion device??
Are you running pokeys??
(;-) TP
Logged
cd_edwards
Active Member
Offline
Posts: 27
Re: LCD display
«
Reply #2 on:
October 28, 2011, 06:53:14 PM »
It's a USB serial device. The device shows up as Com5. Mach was actually seeing the device and sending information to it. I just need to be able to send the proper string's to it.
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: LCD display
«
Reply #3 on:
October 28, 2011, 08:02:43 PM »
From What I can see the LCD Smartie is SOFTWARE used to drive a lcd display.
SO what LCD display are you using???
Can you post a link to a manual for the display???
What about the other code on here did not work for you?
(;-) TP
Logged
cd_edwards
Active Member
Offline
Posts: 27
Re: LCD display
«
Reply #4 on:
October 28, 2011, 08:28:42 PM »
Got it from Sure Electronics. It's called a LCD Smartie Kit. There's a couple of versions of it, I got version II of it.
http://www.sureelectronics.net/goods.php?id=969
I need to send raw char strings to the device instead of waht the other code from here uses. I might have solved the problem, I'll see what happens after this reboot. Currently my serial port is in "use" according to winblows.
Logged
cd_edwards
Active Member
Offline
Posts: 27
Re: LCD display
«
Reply #5 on:
October 28, 2011, 08:29:14 PM »
If init=0 Then
SendSerial Chr(254) & "X"
SendSerial Chr(254) & "G" & Chr(1) & Chr(1) & " X:"
SendSerial Chr(254) & "G" & Chr(1) & Chr(2) & " Y:"
SendSerial Chr(254) & "G" & Chr(1) & Chr(3) & " Z:"
SendSerial Chr(254) & "G" & Chr(1) & Chr(4) & " A:"
setVar(1001, init+1)
setVar(1000, 0)
end if
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: LCD display
«
Reply #6 on:
October 28, 2011, 09:19:36 PM »
YOu are going to have to start small and work your way UP and their is no garrentee that Mach can talk to it.
First make sure that Mach3 and the device is setup proper in the serial side. They have to be exact in configuration.
Start by sending 1 line of 20 charectors to it and see what that does.
Sendserial "abcdefghijklmnopqrst"
(;-) TP
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...