3.2.25.START COUNTER
Is used to command the module to activate a certain counter.
Byte Count
Command
Parameter
Host Command
2
0x51
COUNTER
Module Response
1
0xAA
-
0xEE
COUNTER parameter is the counter number that will be accessed, has a value
of 0 or 1.
When the counter is activated with this command, then the pin that the counter
used will be configured into a digital input with active internal pull-up resistor.
This new setting will also be saved into EEPROM.
If packet is recognized and correct, module will respond with ACK (0xAA).
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
: 0x58 0x02 0x51 0x00 0x55
USB Smart I/O
: 0x58 0x01 0xAA 0xFD
will activate Counter 0
.
3.2.26.GET COUNTER
Is used to command the module to read counting results of a certain counter.
Byte Count
Command
Parameter
Host Command
2
0x52
COUNTER
Module
Response
3
0x52
MSB
LSB
1
0xEE
-
COUNTER parameter is the counter number that will be accessed, has a value
of 0 or 1.
MSB parameter is the most significant byte of counter reading results.
LSB parameter is the least significant byte of counter reading results.
If packet is recognized and correct, module will respond with data reading
results.
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
: 0x58 0x02 0x52 0x00 0x54
USB Smart I/O
: 0x58 0x03 0x52 0x01 0x80 0xD2
means that the computer requests the value of Counter 0 and module replies
that the counter value is 384 (0x0180).
3.2.27.GET VERSION
Is used to read module firmware version.
Byte Count
Command
Parameter
Host Command
1
0xFE
-
Module
Response
3
0xFE
Major
Minor
1
0xEE
-
Parameter Major and Minor show the firmware version in decimals with
Major.Minor format.
18