Ethernet & Sequencer Programming SM15K
30 / 44 DELTA ELEKTRONIKA B.V. rev. Aug. 2019
For example :
....
6 oa2=1
7 w=100
8 ob4=1
....
If the program executes step 7 to wait 100 seconds, the sequencer goes to step 8 after the SM15K
received the command PROG:SEL:STA NEXT. Even when less than 100 seconds are passed.
If a step within the sequence contains a Jump instruction (CJNE,CJE, etc) which must check a certain
condition to be true before the next step can be executed, an extra step before this Jump instruction is
required. Otherwise the NEXT command will ignore the condition. E.g:
.....
11 oa1=1
12 nop
13 cjne ia1,1,12
14 oa1=0
.....
Stepping through the sequence with NEXT from step 13 to step 14 is only possible when user input A is
high. This command will also start a selected sequence when it is in STOP mode.
6.3.8 Stop a Sequence
If the sequence mode is RUN or PAUSE , it can be stopped by the command:
Syntax: PROGram:SELected:STAte<sp><STOP><term>
The sequence will stop immediately, but is still selected.
6.3.9 Read Sequence mode
By sending the query:
Syntax: PROGram:SELected:STAte?<term>
The SM15K will return the current mode. There are three possibilities:
STOP<term>
PAUSE,<next step><term>
RUN,<next step><term>
Syntax: PROGram:SELected:STAte<SP>active?<term>
The SM15K will return the current mode.
There are three possibilities:
STOP<term>
PAUSE,<active step><term>
RUN,<active step><term>
6.3.10 Trigger a Step
When a step contains TRG, the sequence waits for the command via TCP/IP:
Syntax: TRIGger:IMMediate<term>
After this command, the sequencer will proceed.
6.3.11 Add labels
Use the following command to define labels:
Syntax: PROGram:SELected:LABel<sp><name>,<step><term> name = Label name
To query the active Labels, use the command:
Syntax: PROGram:SELected:LABel<sp>?<term>
A maximum of 20 Labels can be defined.The maximum characters per Labelname is 10. Start with a A-Z
character, after which A-Z, 0-9 characters are allowed.
See paragraph 6.6 for example.
6.3.12 Delete labels
Delete a Label by sending the command:
Syntax: PROGram:SELected:LABel<sp><NAMe>,DELETE<term>
Use the following command to delete all Labels:
Syntax: PROGram:SELected:LABel<sp><*>,DELETE<term>
6.3.13 Building a Sequence
Before a sequence can be started it has to be build. During a build the SM15K will, for example, check if all
used Labels are defined properly.