
StoreX Series Remote Operation V0712 .doc 8 RKi, 26.11.2020
DISCONTINUED
FUNCTION STX_OpenCom(pN:INTEGER):STRING;
BEGIN
STX_OpenCom:=STX_Rea BackStr(pN,'CR')
END;
ime out functions and communication error can be trapped at this level.
FUNCTION STX_CloseCom(pN:INTEGER):STRING;
BEGIN
STX_CloseCom:=STX_Rea BackStr(pN,'CQ')
END;
hese examples show how simple communication becomes when using the
“S X_ReadBack” procedure. he following example explains how often used sequences are
programmed. he ‘Set-‘procedure sets an internal relay (or flag). he value of the flag
becomes ‘1’. he ‘Reset-‘procedure resets an internal relay (or flag) . he value of the flag
becomes ‘0’. Flags can be set, reset or read.
FUNCTION STX_Set(pN,rel:INTEGER):STRING;
VAR sR:STRING;
BEGIN
Str(rel,sR);
STX_Set:=STX_Rea BackStr(pN,'ST '+sR)
END;
FUNCTION KV_Reset(pN,rel:INTEGER):STRING;
VAR sR:STRING;
BEGIN
Str(rel,sR);
STX_Reset:=STX_Rea BackStr(pN,'RS '+sR)
END;
FUNCTION STX_Rea (pN,rel:INTEGER):STRING;
VAR sR:STRING;
BEGIN
Str(rel,sR);
STX_Rea :=STX_Rea BackStr(pN,'RD '+ sR)
END;
he Set and Reset will return an ‘OK’-response if operation is successful. he Read-
procedure will return a ‘0’ or ‘1’.
Data memories are 16 bit oriented. hey can be read or written. he following examples
show how to use the data memories.
FUNCTION STX_Rea DataMemory(pN,nbr:INTEGER):STRING;
VAR sR:STRING;
BEGIN
Str(nbr,sR);
STX_Rea DataMemory:=STX_Rea BackStr(pN,'RD DM'+ sR)
END;
FUNCTION STX_WriteDataMemory(pN,nbr:INTEGER; valu:WORD):STRING;
VAR sR,sV:STRING;
BEGIN
Str(nbr,sR); Str(valu,sV);
STX_Rea DataMemory:=STX_Rea BackStr(pN,'WR DM'+ sR + ' ' + sV)
END;
Note that the Response on the above Write procedure is always ‘OK’. he Read procedure
will return a five-character-string.