
Commands - 26
COUNT
Process Function
SYNTAX: n = count(channel)
PURPOSE: To return the count in the software event counters and r eturn the count of the hardware counters.
REMARK S: The COUN T function returns the accum ulated high to low transitions at a specified input,
independent of program execution.
The softw are counters are set up using the O N COUN T statement. channel is the counter number,
and ranges from 0 to 7. The RPC-2350 ranges from 0 to 8. Counter 8 is hardware.
See the Multitasking Chapter for more information.
RELATED: CLEAR COUNT, CONFIG COUNT, ON COUNT, RESUME COUNT, START COUNT, STOP
COUNT
EXAMPLE: 10 CONFIG COUNT 0,0,1
20 START COUNT 0
30 PRINT COUNT(0)
40 GOTO 30
This example continiously prints counter 0 value.
ERROR: < Illegal argument> – if counter> 7
< Data negative> – for counter
Comentarios a estos manuales