FMUSER INTERNATIONAL GROUP INC.
广州市汉婷生物技术开发有限公司
35
11.7 Advanced Commands
CC
Conditional Command
Executes specified command when specified condition occurs. Optional ELSE command supported.
Syntax:
*CC=[aa]bcc:dddddddd
*CC=ELSE:eeeeeeee
where is:
aa - memory address pointer (00-FF)
b - condition operator
<
-
lower
than > - greater
than = - equal
! - not equal
B - bit cc of [aa] is set (numbered from LSB to MSB)
cc - value to compare (00-FF) or bit number (00-07)
dddddddd - the command executed if the condition is fulfilled
eeeeeeee - the command executed if the condition is not fulfilled (optional)
Max. command length is 31 characters. Once the command is executed, next execution is stopped until the
condition fulfilment changes. In other words, the command is executed only at the condition fulfilment change.
Both numbers aa and cc are in hexadecimal representation. Only one
CC
item is allowed. Only commands from
the second column of the Command Summary are allowed.
List of some applicable memory addresses:
13: PTY number (0-31)
15: number of DPS2 characters
28: Message counter (RT2)
29: Message counter (DPS2)
34: number of DPS1 characters
68: timer 0-8A, reset every minute
6A: one of the status bytes (bit 02 - DPS2 is running; bit 03 - DPS1 is running, bit 06 - external program switch)
71: Dynamic PS counter (points to the character that is actually transmitted on the first PS position)
76: static PS counter (0-SPSPER)
78: DPS number of repeats counter
8B: Group Sequence counter
BE: COM port timeout counter in minutes
C3: selection (SEL) counter
C6: Scheduling item number waiting (0, 1-48)
CC: timer 0-FF, increased on each end of PS transmission (approx. once per 0.5 sec. by
default) E4: local hour (0-23)
E5: local minute (0-59) E9:
COM port speed (0-4)
To check visually what value is on each address, type
MEM xx
where xx is the address desired.
Important note: The
CC
is a very “strong” command. Due to a theoretical possibility of bad setting that may cause
the unit stop responding (please don’t ask for an example) the Conditional Command is not active after power-up
for up to 30 seconds. This gives the user a time to type
*CC=
to disable the Conditional Command before it
becomes active.
Note: the Conditional Command execution is temporarily stopped when typing any command via the RS232.