- 145 -
GS C 1 aL aH bL bH n r
[Function]
Setting counter mode (A)
[Code]
<
1D
>
H
<
43
>
H
<
31
>
H
<
aL
><
aH
><
bL
><
bH
><
n
><
r
>
[Range]
0
≦(
aL
+
aH×256
)≦
65535
(
0
≦
aL
≦
255
、
0
≦
aH
≦
255
)
0
≦(
bL
+
bH×256
)≦
65535
(
0
≦
bL
≦
255
、
0
≦
bH
≦
255
)
0
≦n≦
255
0
≦r≦
255
[Outline]
Sets the count mode of serial counter in number.
• aL, aH, bL, bH specifies the counting range of serial counter.
• “n” specifies the number of steps when serial counter is reset.
• “r” specifies the times of repetition with counting value fixed.
Count Mode
Condition
Min.
Max.
Count up
(
aL+aH×256
)<(
bL+bH×256
)
and
n
≠
0 and
r
≠
0
aL+aH×256 bL+bH×256
Count down
(
aL+aH×256
)>(
bL+bH×256
)
and
n
≠
0 and
r
≠
0
bL+bH×256 aL+aH×256
Count stop
(
aL+aH×256
)=(
bL+bH×256
)
or
n=
0 or
r=
0
-
-
[Default]
(
aL
+
aH×256
)=
1
(
aL
=
1
、
aH
=
0
)
(
bL
+
bH×256
)=
65535
(
bL
=
255
、
bH
=
255
)
n=
1
、r=
1
GS C 2 nL nH
[Function]
Setting counter value
[Code]
<
1D
>
H
<
43
>
H
<
32
>
H
<
nL
><
nH
>
[Range]
0≦(nL+nH×256)≦65535 (0≦nL≦255、0≦nH≦255)
[Outline]
Sets the count value of serial counter to
(
nL+nH×256
)
.
[Default]
(
nL
+
nH×256
)=
1
(
nL
=
1
、
nH
=
0
)