LR1100 Programming Manual V1.2
[Notes]
Count-up mode is specified when:
[aL
+ aH
×
256] < [bL
+ bH
×
256] and n
0 and r
0
Count-down mode is specified when:
[aL
+ aH
×
256] > [bL
+ bH
×
256] and n
0 and r
0
Counting stops when:
[aL
+ aH
×
256] = [bL
+ bH
×
256] and n = 0 or r = 0
In setting count-up mode, the minimum value of the counter is [aL
+ aH
×
256] and
the maximum value is [bL
+ bH
×
256]. If counting up reaches a value exceeding
the maximum, it is resumed with the minimum value.
In setting count-down mode, the maximum value of the counter is [aL
+ aH
×
256]
and the minimum value is [bL
+ bH
×
256]. If counting down reaches a
value less
than the minimum, it is resumed with the maximum value.
When this command is executed, the internal counter that indicates the repetition
number specified by r is cleared.
[Defaults] aL
= 1, aH
= 0, bL
= 255, bH
= 255, n =1, r = 1
[Reference]
GS C 0, GS C 2, GS C ;, GS c
GS C 2 nL nH
[Name]
Set counter
[Format]
ASCII
GS C 2 nL mH
Hex
1D 43 32 nL mH
Decimal 29 67 50 nL mH
[Range]
0
nL
255
0
nH
255
[Description] Sets the serial number counter value.
nL
and n
H
determine the value of the serial number counter set by [nL
+ nH
×
256].
[Notes]
In count-up mode, if the counter value specified by this command goes out of the
counter operation range specified by
GS C1
or
GS C ;
, it is forced to convert to the
minimum value by
GS c
.
In count-down mode, if the counter value specified by this command goes out of
the counter operation range specified by
GS C1
or
GS C ;
, it is forced to convert to
the maximum value by
GS c
.
[Default]
nL
= 1, nH
= 0
[Reference]
GS C 0, GS C 1, GS C ; GS c
GS C ; sa ; sb ; sn; sr; sc;
[Name]
Select count mode (B)
[Format]
ASCII
GS C ; sa ; sb ; sn ; sr ; sc ;
Hex
1D 43 3B sa 3B sb 3B sn 3B sr 3B sc 3B