SPECIAL APPLICATION
400-0384-003 13
Example:
Subroutine 10 is assigned to Input #1,
subroutine 20 is assigned to Input #2,
subroutine 30 is assigned to Input #3,
and subroutine 40 is assigned to Input #4. Send
the command [RDIN*] and receive the following
feedback:
IN#1=SUB10
IN#2=SUB20
IN#3=SUB30
IN#4=SUB40
12. [WRS]
The command is used to write functions to any
of 99 available subroutine memory locations. A
subroutine may be overwritten or appended for
long command function strings.
Each location may contain up to 100 characters,
and a maximum of 24 characters may be written
to a subroutine at one time.
More than one function may be stored in a
single subroutine and multiple functions may be
written to memory in one command. When
sending multiple functions in a single command,
it is necessary to separate each function with a
comma.
Command Format: [WRSm=F1,F2,F3...Fn;pCi]
m= Subroutine (m = # from 1 to 99)
F= Function (up to 25 characters at a time)
p= Saving Instruction
0 append existing info
1 overwrite to existing info
Ci = Unit ID (i = # from 1 to 99)
Example:
A subroutine (sub 10) needs to store the
following functions: WRRL1=1, WAIT10,
WRRL1=0, WAIT10, SET1ALARM30800 and
ALRMON1. This is accomplished by sending the
following commands:
[WRS10=WRRL1=1,WAIT10,WRRL1=0;1]
[WRS10= SET1ALARM30800,ALRMON1;0]
Now send the command [RDS10] to read the
contents of subroutine 10. The feedback will be
as follows:
SUB10/NONE/: WRRL1=1,WAIT10,WRRL1=0,
SET1ALARM30800,ALRMON1
13. [WRLS]
This command is used to assign a label to a
subroutine. The label may be used to identify or
denote the purpose of the subroutine and may
be up to 8 characters long.
Illegal Characters: < > [ ] # $ % / \ |
Command Format: [WRLSm=<xxxxxxxx>Ci]
m= Subroutine (m =# from 1to 99)
x..x = Label Name (text characters)
Ci = Unit ID (i = # from 1 to 99)
Example:
Assign the text “SETALRM1” as the label for
subroutine 40 by sending the following
command:
[WRLS40=<SETALRM1>]
Next, send the command [RDLS40] and verify
the following feedback:
SETALRM1
14. [RDS]
This command displays the contents of one or
all subroutine memory locations. The subroutine
number, label,and stored data will be displayed.
Command Format: [RDSmCi]
m= Subroutine (m = # from 1 to 99, * for all)
Ci = Unit ID (i = # from 1 to 99)