Click here to Skip to main content
15,899,126 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalclient server Pin
ra_shieru17-Dec-07 11:20
ra_shieru17-Dec-07 11:20 
Questionmdb file with access to many user without SQL Server Pin
stephan060717-Dec-07 10:26
stephan060717-Dec-07 10:26 
GeneralRe: mdb file with access to many user without SQL Server Pin
Dave Kreskowiak17-Dec-07 14:56
mveDave Kreskowiak17-Dec-07 14:56 
GeneralPossible parameters in function Pin
helelark12317-Dec-07 5:38
helelark12317-Dec-07 5:38 
GeneralRe: Possible parameters in function Pin
Dave Kreskowiak17-Dec-07 14:53
mveDave Kreskowiak17-Dec-07 14:53 
AnswerRe: Possible parameters in function Pin
helelark12317-Dec-07 18:38
helelark12317-Dec-07 18:38 
GeneralRe: Possible parameters in function [modified] Pin
helelark12317-Dec-07 21:54
helelark12317-Dec-07 21:54 
GeneralSerialport using in VB.NET Pin
Robert Hsu17-Dec-07 4:05
Robert Hsu17-Dec-07 4:05 
Hello, everyone

I am using VB.NET 2005 to create a project try to monite the PLC device. This project need to send a ASCII string to PLC link <enq>00FFBRAM00001422. I create this string in my program and using SerialPort object to control RS-232 port. I wrote the following code

RS232PORT = NEW system.io.pORT ( "COM6" , 9600 , ....)
RS232PORT.OPEN()...........................This stament execute sucessfull , means RS232port define is ok,
.....
mStr1 = chr(05) & "00FFBRAM00001422"
RS232PORT.WRITE( mstr1 )

and I found the RS-232 port flesh and PLC recive LED also flesh one. But PLC return with nothing. I got another utility and open another com port said COM3, and have null modem connected COM3 & COM6 and RS-232 test utility shows it got a data with 63 5 63 30 63 30 63 46 63 46..... it seems a x63 was added for each character, I wounder why ?

I check the menu say , SerialPort object default use encoding.ASCII format to send data , but why the result seems not,
following is my serial port object setting
? rs232port
{System.IO.Ports.SerialPort}
BaseStream: {System.IO.Ports.SerialStream}
BaudRate: 9600
BreakState: False
BytesToRead: 0
BytesToWrite: 0
CDHolding: False
Container: {System.ComponentModel.Container}
CtsHolding: False
DataBits: 7
DiscardNull: False
DsrHolding: False
DtrEnable: False
Encoding: {System.Text.ASCIIEncoding}
Handshake: None {0}
InfiniteTimeout: -1
IsOpen: True
NewLine: "
"
Parity: Odd {1}
ParityReplace: 63
PortName: "COM6"
ReadBufferSize: 4096
ReadTimeout: -1
ReceivedBytesThreshold: 1
RtsEnable: False
Site: {System.ComponentModel.Container.Site}
StopBits: One {1}
WriteBufferSize: 2048
WriteTimeout: -1

can anyone know where I should change to send data string to PLC normally.

Best regards
Robert
GeneralRe: Serialport using in VB.NET Pin
Luc Pattyn17-Dec-07 6:59
sitebuilderLuc Pattyn17-Dec-07 6:59 
Generalhelp need for removing image from picturebox Pin
Senthil S17-Dec-07 1:11
Senthil S17-Dec-07 1:11 
GeneralRe: help need for removing image from picturebox Pin
ChandraRam17-Dec-07 1:43
ChandraRam17-Dec-07 1:43 
GeneralRe: help need for removing image from picturebox Pin
Christian Graus17-Dec-07 10:36
protectorChristian Graus17-Dec-07 10:36 
GeneralRe: help need for removing image from picturebox Pin
Luc Pattyn17-Dec-07 11:40
sitebuilderLuc Pattyn17-Dec-07 11:40 
Questionsecurity issue Pin
Tauseef A17-Dec-07 0:52
Tauseef A17-Dec-07 0:52 
GeneralRe: security issue Pin
Vimalsoft(Pty) Ltd17-Dec-07 21:00
professionalVimalsoft(Pty) Ltd17-Dec-07 21:00 
QuestionVisual Basic 6.0 Pin
Member 472059117-Dec-07 0:40
Member 472059117-Dec-07 0:40 
GeneralRe: Visual Basic 6.0 Pin
ChandraRam17-Dec-07 1:45
ChandraRam17-Dec-07 1:45 
GeneralRe: Visual Basic 6.0 Pin
anthoy17-Dec-07 19:59
anthoy17-Dec-07 19:59 
GeneralRe: Visual Basic 6.0 Pin
Paul Conrad23-Dec-07 14:02
professionalPaul Conrad23-Dec-07 14:02 
GeneralRe: Visual Basic 6.0 Pin
CPallini17-Dec-07 3:23
mveCPallini17-Dec-07 3:23 
GeneralRe: Visual Basic 6.0 Pin
Paul Conrad23-Dec-07 14:03
professionalPaul Conrad23-Dec-07 14:03 
Questionwhat is eguivalent in c# for CShort in vb...? Pin
tasumisra16-Dec-07 23:36
tasumisra16-Dec-07 23:36 
AnswerRe: what is eguivalent in c# for CShort in vb...? Pin
Ashish Kumar Vyas16-Dec-07 23:58
Ashish Kumar Vyas16-Dec-07 23:58 
GeneralRe: what is eguivalent in c# for CShort in vb...? Pin
CKnig17-Dec-07 2:36
CKnig17-Dec-07 2:36 
AnswerRe: what is eguivalent in c# for CShort in vb...? Pin
Dave Doknjas17-Dec-07 14:30
Dave Doknjas17-Dec-07 14:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.