

Originally Posted by
amgen
....."0" is decimal 48
thanks to everyone involved to help me on this project.
I tried about every way to setup the HSerin1,2
still not working.
I'm realy suprise since these HSerin command are part of PBP3 for at least 15 years
and today in 2025 cannot find any reliable sample codes.
even the PBP3 examples does not work at all for my setup.
I had 1 rs232/ttl scanner bad (intermitent power on the rs232 rail)
connected another one and the only easy way to make work it's
with the code below.
Code:
MAIN:
'--------------------------------------------
serin2 PORTB.0,84,50,MAIN,[STR AARRAY\12]
serOut2 PORTB.1,84, [str aarray\12,13,10]
serOut2 PORTB.1,84, ["Done!",13,10]
'--------------------------------------------
GoTo MAIN
Bookmarks