[Default]
n1 + n2 x 256 = 1
[Reference]
GS CO, GS Cl, GS c, GS C;
GSC; N1; N2; N3; N4; N5;
[Name]
Select count mode (B)
[Format]
<1D>H<43>H<3B>H<N1><3B>H<N2><3B>H<N3><3B>H
<N4><3B>H<N5><3B>H
[Range]
0
≤
N1
≤
65535
0
≤
N2
≤
65535
0
≤
N3
≤
255
0
≤
N4
≤
255
0
≤
N5
≤
65535
[Description] Select count mode of the serial number counter and specifies the
starting value of the counter.
With counting up
l
Counts up if N1<N2, N3
≠
0, and N4
≠
0.
l N1 means the minimum value of the counter, and N2 the
maximum value.
With counting down
l
Counts down if N1>N2, N3 # 0, and N4
≠
0.
l N1 means the maximum value of the counter, and N2 the
minimum value.
To stop counting
l
Stops counting when N1 = N2, N3 = 0, or N4 = 0.
l
N3 indicates stepping amount while counting up or down.
l
N4 indicates repetition number with the counter value fixed.
l
N5 indicates the counter value.
l
When this command is issued, the inner counter that counts the
repetition number with counter value fixed will be cleared.
l
N7 to N5 can be omitted. If omitted, those parameter values will
be kept unchanged.
l
N7 to N5 cannot contain characters except O-9.
l
If incorrect syntax is used, the corresponding parameter setting
will have no effect and the data after that will be processed as
normal data.
With counting up
l
If the counting up reaches a value exceeding the maximum, it
will be resumed with the minimum.
[Notes]
49