![LiCONiC StoreX Series Operating Manual Download Page 69](http://html1.mh-extra.com/html/liconic/storex-series/storex-series_operating-manual_1907204069.webp)
StoreX
Series
STX_V078.doc
68
CMa,
23.11.2009
8. Remote
Operation
8.1
RS-232 Serial Port Configuration
ASCII data format
Full duplex
PC: Delimiter CR (Chr 13h)
PLC: Delimiter CR,LF (Chr 13h,10h)
9600 Baud
8 Data bits
1 Stop bit
Parity even
The example program shows how the comport is initialized under MS-DOS. For
details refer to the MS-DOS manuals.
FUNCTION STX_InitCom(pN:INTEGER):INTEGER;
VAR n:INTEGER;
BEGIN
n:=ModeCom(pN,9600,'E',8,1);
STX_InitCom:=n
END;
8.2
Command Transmission Procedure
8.2.1 Brake
Signal
The controller serial port is reset by sending a ‘Brake Signal’. The specification of
the Brake Signal is given below.
In most cases the Brake Signal can be omitted. The example program shows
how a Brake Signal can be implemented under MS-DOS. The example program
consists of two procedures where the inner procedure “LCR_Brake” is called by
the outer procedure (“STX_ComReset”). Note that this program will directly
address the comport chip. There may be operating systems that will not allow the
chip to be addressed directly.
PROCEDURE STX_ComReset(pN:INTEGER);
PROCEDURE LCR_Brake(rAdr,tme:INTEGER);
BEGIN
Port[rAdr]:=Port[rAdr] OR $40; Delay(tme); {Bit6=Brake}
Port[rAdr]:=Port[rAdr] AND $BF; Delay(2);
END;
BEGIN
CASE pN OF
1: LCR_Brake($3FB,500);
2: LCR_Brake($2FB,500);
END
END;
100ms or longer
V+
V -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com