
EDAM-4200 Series User’s manual Version 1.03
8.4.48
#AARN
Read single DI counter value and overflow flag
Description: Read single digital input counter value with overflow
Command:
#AARN [CHK](cr)
Syntax:
#
Command leading code
AA
Module address ID(01 to FF , Always 01)
R
represent read single DI counter value with overflow command
N
represents DI channel number (0~F)
CHK
Check sum
(cr)
Carriage return
Response:
!AAR(data) (cr)
Valid command.
?AA[CHK](cr)
Invalid command
!
Delimiter for valid command
?
Delimiter for invalid command
AA
Module address ID
R
DI Counter Overflow.
= 0 - No counter overflow has occurred.
= 1 - A counter overflow has occurred.
(data)
10-characters(decimal) represents counter value
CHK
Check sum
(cr)
Carriage return
Example 1:
Read single digital input channel(5) counter value with overflow
command:
#01R
5
(cr)
response:
!01
1
0000000123
(cr)
;
R
epresents counter value is
0000000123
and counter
overflow(
1)
has occurred.
Example 2:
Read single digital input channel(5) counter value with overflow
command:
#01R
5
(cr)
response:
!01
0
0000000123(cr)
;
R
epresents counter value is
0000000123
and No counter
overflow(
0
) has occurred.
Related command:
$AA0MCC, $AAECN, $AA0MCC(data1)(data2), $AAECN, $AACN, #AAN
Printed Date: 27 February 2018
134