General > Frequently Asked Questions
VBasic comms
Dan Morgan:
Does anyone have some sample code for polling a plc in visual basic 5 or 6? I wrote a small program in qbasic it worked great. But in visbasic I get an echo of Cntrl E but the command always comes back ER*. It's something silly but I don't have a clue.
Thanks for any input.
Dan
support:
We have created a sample program in Visual Basic that can handle both point-to-point and multi-point protocol. You can download the program including full source code from the following link:
http://www.tri-plc.com/applications/VBsample.htm
This program allows you to setup the communication parameters and send test host link messages, as shown below:
support:
A user Mr Julian Stone of The United Kingdom has kindly contributed a Visual BASIC .NET class and some additional command for communication with the M-series PLCs. The file is located at:
http://www.tri-plc.com/appnotes/VBasicDotNetComm.htm
newbie-06:
dear support...
i dunno what's wrong with my PLC TMD100 1616..
i try to connect with TLserver 3.0 using wind XP..
when i type command "IR*", the TLserver reply well, they sent back the response,,,
but when i type command "RVDnnnn*" the TLserver reply "No response from PLC"...
plis help me,,,
thanks a lot, support
for additional hereby i include the screenshoot from TLserver
support:
TLServer only supports multi-point protocol except for "IR*" command. So you need to enter "@01RVDxxxx00*" - 00 is the wildcard FCS, but you can also click the "FCS" button to enter the real FCS.
Note that the address is in Hexadecimal notation. So if you want to read DM[3904] you need to convert it to Hexadecimal which is 0F40.
Navigation
[0] Message Index
[#] Next page
Go to full version