Hi,
I connect a barcode scanner to com1.
I use these funtions:
1. Funtion
setbaud 1,3
2. funtion
A$= INPUT (1)
A= VAL(A$)
IF A>0
B=A: ENDIF
The PLC doesn't show any information when I read the barcode.
The barcode reader has many configurations, so I don't know if some parameters have to be changed. This is how it is configuarated (none,9600,8,1,even,CR) the others are options.
HANDSHAKING ? NONE RTS/CTS, ACK/NAK, Xon/off
BAUD RATE ? ? ? ? 9600 19200,4800,2400
DATA BIT ? ? ? ? ? ? ? ? ?8 ? ? ? ? ? ? 7
STOP BIT ? ? ? ? ? ? ? ? ?1 ? ? ? ? ? ? 2
PARITY ? ? ? ? ? ? ? ?even ? ? ? ? ? ? Odd, Mark,space,none
TERMINATOR ? ? ? ? ? CR ? ? ? ?none,cr/lf,lf,h tab,stx/etx,eot
I checked the barcode reader using the HyperTerminal and it read the value of the barcode.
How can I solve the problem?
If I want to use the COMM3, the only part that I need to change is the setbaud 3,3 and the A$=INPUT(#).
Philip.