Rpbasic-52 programming guide, Count – Remote Processing BASIC 52 User Manual
Page 42
RPBASIC-52 PROGRAMMING GUIDE
2-23
COUNT
(statement)
Syntax:
COUNT counter ,data
Where: counter = 0 or 1
data = 0 to 16777215
Function:
Writes data to spec ified up /dow n coun ter.
Mode:
Comm and, Run
Use:
CO UN T 0,A
Cards:
RPC-320, RPC-330
D E S C R IP T I ON
Use this command to write 3 data bytes to the preset register (PR) in the LSI 7166 counter. This command
does not transfer PR to the counter (CNTR). To do this, execute:
LINEB 6,X,8
Where: X = 1 for counter 0, 3 for counter 1.
NOTE: The sign of data is ignor ed. It ca n be a p ositive or nega tive nu mbe r. Wh en neg ative, data is simply
treate d as a p ositive num ber.
Decim al portion of data is ignored. For exam ple, if data = 100.99999 , 100 is loaded into the counter.
See your hardware manual for more information about using the LSI 7166 chip.
Software co unters 4 - 11 cann ot be set.
RELATED
COUN T (function)
E R R O R
B A D A R G U M E N T
When counter <> 0 or data out of range.
EXAMPLE
10 COUNT 0,124735