Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ray386

Pages: [1]
1
Technical support / Re:Serial Comms with LibertyBasic ???
« on: January 25, 2009, 04:28:25 PM »
This code works, thanks. Now Allo I have to do is figure out why it works.

2
Technical support / Re:Serial Comms with LibertyBasic ???
« on: January 25, 2009, 02:01:09 AM »
We are one step closer. Turning on the DTR I can now at least receive the ready byte chr(5) back from the PLC.
However When I do a read or write command nothing happens. I do not get feedback from the PLC on a read and writing commands no longer work and they use to with DTR off.???
Also if you have a copy of that code you can send me that would be great but I think I got it with the serial1.ReadExist and putting that in string variable. It?s just that nothing comes back in the serial buffer. See here the results from serial monitor. The working qbasic application is ?ntvdm.exe? and my VBExpress2008 is ?SCADA1.exe? Notice that I am sending the exact same hex code ?in red?. PLC Answers the wakeup 05 but fails to answer the RO00* command. Notice that with the other application in Qbasic ?ntvdm.exe?. It all works. I have tried slowing down with time between write and read with no effect.  Any ideas??



Port opened by process "SCADA1.exe" (PID: 2056)
Request: 1/25/2009 04:40:42.54664 (+78.5313 seconds)
 05                                                .              

Answer: 1/25/2009 04:40:44.62464 (+2.0781 seconds)
 05                                                .              

Request: 1/25/2009 04:40:44.62464 (+0.0000 seconds)
 52 4F 30 30 2A 0D                                 RO00*.          

Port closed

Port opened by process "ntvdm.exe" (PID: 5412)
 05                                                .              

Answer: 1/25/2009 04:41:38.95264 (+0.0156 seconds)
 FF 03 AA 05                                       ?.?.            

Request: 1/25/2009 04:41:38.95264 (+0.0000 seconds)
 52 4F 30 30 2A 0D                                 RO00*.          

Answer: 1/25/2009 04:41:38.96864 (+0.0156 seconds)
 52 4F 30 39 2A 0D FF 03 0A                        RO09*.?..      

Port closed

3
Technical support / Re:Serial Comms with LibertyBasic ???
« on: January 23, 2009, 08:51:48 PM »
I have tried VB Express 2008 and I have the same issue.
i can write but the plc does not respond or the laptop can't catch it?
Only Qbasic can do it wright. But it's obsolete for gui programming.
Anyone seen this before?

4
Technical support / Re:Serial Comms with LibertyBasic ???
« on: January 20, 2009, 09:54:08 PM »
Not helpful as I am using LibertyBasic.

5
Technical support / Serial Comms with LibertyBasic ???
« on: January 20, 2009, 07:26:24 PM »
Has any one tried LibertyBasic to communicate with any type of PLC from trilogi?
Communication seems to only work with Qbasic.
When I use the same code in LibertyBasic PLC does not respond.

Yes i do give some wait time before looking at input.
Yes there is a command send out on the comm port. This is confirmed with other laptop and serial debug software.
So whay does this PLC "T44H-pnp" does not respond to the command chr$(5) or any other? The feedback is suppose to be an echo of what is sent.

Here is the code

[opencom]
    open  "com1:9600,n,8,1,ds0,cs0,rs" for random as #1

[sendwakeup]
    print "com 1 opened."
    print #1,chr$(5)
    timer 200, [timedown]
    wait
[ri]
    a$ = input$(#1,1)
    print "Feedback is >";a$
    close #1
    print "file is closed."
    end
[timedown]
timer 0
goto [ri]

Pages: [1]